package sihl

  1. Overview
  2. Docs
The modular functional web framework

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-queue-0.1.8.tbz
sha256=e77ffae26dac04e446ff07854de68a03edfd05031b5cb0dbcb6dc4a96e2d1c8e
sha512=7682c55136dbb8c68517ccd2c157a3556d966cb8565d15cf21ab270f92ea7e9ee5d3ac1479ba2e34a80f3052ca5dd1a74e964a8764c2164e3e71e9048fcdf51b

doc/sihl.user/Sihl_user/Service/Make/index.html

Module Service.MakeSource

Parameters

Signature

Sourceval find_all : Sihl_core.Ctx.t -> query:Sihl_database.Ql.t -> (Sihl_user__.Model.t list * Sihl_repository.Meta.t) Lwt.t
Sourceval find_opt : Sihl_core.Ctx.t -> user_id:string -> Sihl_user__.Model.t option Lwt.t
Sourceval find : Sihl_core.Ctx.t -> user_id:string -> Sihl_user__.Model.t Lwt.t
Sourceval find_by_email : Sihl_core.Ctx.t -> email:string -> Sihl_user__.Model.t Lwt.t
Sourceval find_by_email_opt : Sihl_core.Ctx.t -> email:string -> Sihl_user__.Model.t option Lwt.t
Sourceval update_password : Sihl_core.Ctx.t -> ?password_policy:(string -> (unit, string) Result.t) -> user:Sihl_user__.Model.t -> old_password:string -> new_password:string -> new_password_confirmation:string -> unit -> (Sihl_user__.Model.t, string) Result.t Lwt.t
Sourceval update_details : Sihl_core.Ctx.t -> user:Sihl_user__.Model.t -> email:string -> username:string option -> Sihl_user__.Model.t Lwt.t
Sourceval set_password : Sihl_core.Ctx.t -> ?password_policy:(string -> (unit, string) Result.t) -> user:Sihl_user__.Model.t -> password:string -> password_confirmation:string -> unit -> (Sihl_user__.Model.t, string) Result.t Lwt.t

Set the password of a user without knowing the old password.

This feature is typically used by admins.

Sourceval create_user : Sihl_core.Ctx.t -> email:string -> password:string -> username:string option -> Sihl_user__.Model.t Lwt.t

Create and store a user.

Sourceval create_admin : Sihl_core.Ctx.t -> email:string -> password:string -> username:string option -> Sihl_user__.Model.t Lwt.t

Create and store a user that is also an admin.

Sourceval register_user : Sihl_core.Ctx.t -> ?password_policy:(string -> (unit, string) result) -> ?username:string -> email:string -> password:string -> password_confirmation:string -> unit -> (Sihl_user__.Model.t, string) Result.t Lwt.t

Create and store new user.

Provide password_policy to check whether the password fulfills certain criteria.

Sourceval login : Sihl_core.Ctx.t -> email:string -> password:string -> (Sihl_user__.Model.t, string) Result.t Lwt.t

Find user by email if password matches.

OCaml

Innovation. Community. Security.