Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include Sihl_contract.Password_reset.Sig
include Sihl_core.Container.Service.Sig
val create_reset_token : email:string -> string option Lwt.t
Create and store a reset token.
Returns None
if there is no user with email
. The reset token can be used with reset_password
to set the password without knowing the old password.
val lifecycle : unit -> Sihl_core.Container.Lifecycle.t
val register :
(module Sihl_contract.Password_reset.Sig) ->
Sihl_core.Container.Service.t