package sihl-user

  1. Overview
  2. Docs

Module Sihl_userSource

include module type of struct include Sihl.Contract.User end
Sourceval ptime_to_yojson : Ptime.t -> [> `String of string ]
Sourceval ptime_of_yojson : Yojson__Safe.t -> (Ptime.t, string) result
Sourcetype status =
  1. | Active
  2. | Inactive
Sourceval status_to_yojson : status -> Yojson.Safe.t
Sourceval status_of_yojson : Yojson.Safe.t -> status Ppx_deriving_yojson_runtime.error_or
Sourceval pp_status : Ppx_deriving_runtime.Format.formatter -> status -> Ppx_deriving_runtime.unit
Sourceval show_status : status -> Ppx_deriving_runtime.string
Sourceval status_of_string : string -> (status, string) result
Sourceval status_to_string : status -> string
Sourcetype t = {
  1. id : string;
  2. email : string;
  3. username : string option;
  4. name : string option;
  5. given_name : string option;
  6. password : string;
  7. status : status;
  8. admin : bool;
  9. confirmed : bool;
  10. created_at : Ptime.t;
  11. updated_at : Ptime.t;
}
Sourceval to_yojson : t -> Yojson.Safe.t
Sourceval of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
Sourceval _ : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
Sourceval pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
Sourceval show : t -> Ppx_deriving_runtime.string
Sourceval equal : t -> t -> bool
Sourceval show_name : t -> string option
Sourceexception Exception of string
Sourceval name : string
Sourceval to_sexp : t -> Sexplib0.Sexp.t
Sourceval confirm : t -> 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 make : ?id:string -> email:string -> password:string -> name:string option -> given_name:string option -> username:string option -> admin:bool -> bool -> (t, string) result
Sourceval log_src : Logs.src
Sourcemodule Logs : Logs.LOG
Sourcemodule Make (Repo : sig ... end) : Sihl.Contract.User.Sig
Sourcemodule PostgreSql : sig ... end
Sourcemodule MariaDb : sig ... end
Sourcemodule Password_reset : sig ... end
OCaml

Innovation. Community. Security.