package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
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 of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val _ : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
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 alcotest : t Alcotest.testable
val ctx_key : t Core.Ctx.key
val confirm : t -> t
val set_user_password : t -> string -> (t, string) Stdlib.result
val set_user_details : t -> email:string -> username:string option -> t
val is_admin : t -> bool
val is_owner : t -> Stdlib.String.t -> bool
val is_confirmed : t -> bool
val matches_password : string -> t -> bool
val default_password_policy : string -> (unit, string) Stdlib.result
val validate_new_password : password:Stdlib.String.t -> password_confirmation:Stdlib.String.t -> password_policy:(Stdlib.String.t -> (unit, string) Stdlib.result) -> (unit, string) Stdlib.result
val validate_change_password : t -> old_password:string -> new_password:Stdlib.String.t -> new_password_confirmation:Stdlib.String.t -> password_policy:(Stdlib.String.t -> (unit, string) Stdlib.result) -> (unit, string) Stdlib.result
val create : email:string -> password:string -> username:string option -> admin:bool -> confirmed:bool -> (t, string) Stdlib.result
val t : t Caqti_type.t
OCaml

Innovation. Community. Security.