package sihl

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Service.UserSource

Sourcemodule Database = Sihl_database
Sourcemodule Utils = Sihl_utils
Sourcetype t = {
  1. id : string;
  2. email : string;
  3. username : string option;
  4. password : string;
  5. status : string;
  6. admin : bool;
  7. confirmed : bool;
  8. created_at : Ptime.t;
}
Sourceval created_at : t -> Ptime.t
Sourceval confirmed : t -> bool
Sourceval admin : t -> bool
Sourceval status : t -> string
Sourceval password : t -> string
Sourceval username : t -> string option
Sourceval email : t -> string
Sourceval id : t -> string
Sourcemodule Fields : sig ... end
Sourceval to_yojson : t -> Yojson.Safe.t
Sourceval make : id:string -> email:string -> ?username:string -> password:string -> status:string -> admin:bool -> confirmed:bool -> created_at:Ptime.t -> unit -> t
Sourceval equal : t -> t -> bool
Sourceval confirm : t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval set_user_password : t -> string -> (t, string) result
Sourceval set_user_details : t -> email:string -> username:string option -> t
Sourceval is_admin : t -> bool
Sourceval is_owner : t -> String.t -> bool
Sourceval is_confirmed : t -> bool
Sourceval matches_password : string -> t -> bool
Sourceval default_password_policy : string -> (unit, string) result
Sourceval validate_new_password : password:String.t -> password_confirmation:String.t -> password_policy:(String.t -> (unit, string) result) -> (unit, string) result
Sourceval validate_change_password : t -> old_password:string -> new_password:String.t -> new_password_confirmation:String.t -> password_policy:(String.t -> (unit, string) result) -> (unit, string) result
Sourceval create : email:string -> password:string -> username:string option -> admin:bool -> confirmed:bool -> (t, string) result
Sourceval t : t Caqti_type.t
OCaml

Innovation. Community. Security.