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
val status_to_yojson : status -> Yojson.Safe.t
val status_of_yojson :
Yojson.Safe.t ->
status Ppx_deriving_yojson_runtime.error_or
val pp_status :
Ppx_deriving_runtime.Format.formatter ->
status ->
Ppx_deriving_runtime.unit
val show_status : status -> Ppx_deriving_runtime.string
val status_of_string : string -> (status, string) Stdlib.result
val status_to_string : status -> string
type t = {
id : string;
email : string;
username : string option;
name : string option;
given_name : string option;
password : string;
status : status;
admin : bool;
confirmed : bool;
created_at : Ptime.t;
updated_at : Ptime.t;
}
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 show : t -> Ppx_deriving_runtime.string
val show_name : t -> string option
module type Sig = Sihl.Contract.User.Sig
val to_sexp : t -> Sexplib0.Sexp.t
module Hashing = Sihl.Contract.User.Hashing
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 ->
name:string option ->
given_name:string option ->
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