package sihl

  1. Overview
  2. Docs
The modular functional web framework

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-0.1.3.tbz
sha256=3d1acdd1eae24a7131033656f90b5d20c1621e6ef92957edf88a09b8b5f2d9e9
sha512=d224f54e20a9465c7a03d534dadcb2b9a181ae87c13731840db945aab37534f6f3982c5cb25a197e90c17d8772da062b19fa92bb93ed53a8b736c3776a7776db

doc/sihl.user/User/PasswordReset/Service/Make/index.html

Module Service.MakeSource

Parameters

module UserService : sig ... end

Signature

include Core.Container.SERVICE
Sourceval lifecycle : Core__.Core_container.Lifecycle.t
Sourceval start : Core__.Core_ctx.t -> Core__.Core_ctx.t Lwt.t
Sourceval stop : Core__.Core_ctx.t -> unit Lwt.t
Sourceval 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.

Sourceval reset_password : Core.Ctx.t -> token:string -> password:string -> password_confirmation:string -> (unit, string) Result.t Lwt.t

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

OCaml

Innovation. Community. Security.