Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Sihl.Contract.User end
module type Sig = Sihl.Contract.User.Sig
module Hashing = Sihl.Contract.User.Hashing
val to_sexp : t -> Sexplib0.Sexp.t
val pp : Stdlib.Format.formatter -> t -> unit
val of_yojson : Yojson__Safe.t -> t option
val to_yojson :
t ->
[> `Assoc of (string * [> `Bool of bool | `Null | `String of string ]) list ]
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 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 make :
email:string ->
password:string ->
username:string option ->
admin:bool ->
confirmed:bool ->
(t, string) Stdlib.result
module Make (Repo : sig ... end) : Sihl.Contract.User.Sig
module PostgreSql : sig ... end
module MariaDb : sig ... end
module Password_reset : sig ... end