Module type Contract_password_reset.Sig
val create_reset_token : ?ctx:(string * string) list -> email:string -> string option Lwt.t
create_reset_token ?ctx ~email
creates and stores a reset token.Returns
None
if there is no user withemail
. The reset token can be used withreset_password
to set the password without knowing the old password.
val reset_password : ?ctx:(string * string) list -> token:string -> password:string -> password_confirmation:string -> (unit, string) Result.t Lwt.t
reset_password ?ctx ~token ~password ~password_confirmation
sets the password of a user associated with the resettoken
.
val register : unit -> Sihl__.Core_container.Service.t
include Sihl__.Core_container.Service.Sig
val lifecycle : Sihl__.Core_lifecycle.lifecycle