package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Database = Sihl_database
module Utils = Sihl_utils
module Error : sig ... end
type 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;
}
val created_at : t -> Ptime.t
val confirmed : t -> bool
val admin : t -> bool
val status : t -> string
val password : t -> string
val username : t -> string option
val email : t -> string
val id : t -> string
module Fields : sig ... end
val to_yojson : t -> Yojson.Safe.t
val make : id:string -> email:string -> ?username:string -> password:string -> status:string -> admin:bool -> confirmed:bool -> created_at:Ptime.t -> unit -> t
val equal : t -> t -> bool
val confirm : t -> t
val sexp_of_t : t -> Sexplib0.Sexp.t
val set_user_password : t -> string -> (t, string) result
val set_user_details : t -> email:string -> username:string option -> t
val is_admin : t -> bool
val is_owner : t -> String.t -> bool
val is_confirmed : t -> bool
val matches_password : string -> t -> bool
val default_password_policy : string -> (unit, string) result
val validate_new_password : password:String.t -> password_confirmation:String.t -> password_policy:(String.t -> (unit, string) result) -> (unit, string) result
val 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
val create : email:string -> password:string -> username:string option -> admin:bool -> confirmed:bool -> (t, string) result
val t : t Caqti_type.t
OCaml

Innovation. Community. Security.