package sihl

  1. Overview
  2. Docs
The modular functional web framework

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-queue-0.1.7.tbz
sha256=a432c28b88610b8ef914aa93d1be5bf3ad4b357ebaa8e95848e981ea30611cd4
sha512=e85a2c2935973826ef29191d6a784dca53660c8df55a98174d7326a8a73865cf7f35bfae034b179d85f30bb809985da3c6d170608da2e9ac9763b8fd1f8a1a4e

doc/sihl.user/Sihl_user/Service/User/index.html

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.