package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Parameters

module UserService : sig ... end

Signature

include Core.Container.SERVICE
val lifecycle : Core__.Core_container.Lifecycle.t
val create_reset_token : Core.Ctx.t -> email:string -> Token.t 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 reset_password : Core.Ctx.t -> token:string -> password:string -> password_confirmation:string -> (unit, string) Stdlib.Result.t Lwt.t

Set the password of a user associated with the reset token.

OCaml

Innovation. Community. Security.