package sihl

  1. Overview
  2. Docs
The modular functional web framework

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-queue-0.1.9.tbz
sha256=77f0813d75a88edd14b3396e8b848d94c31c28803299b4b1bd4b78b1de4a2e80
sha512=a8907bc35ea14b7c3a7d638979a2a274860202b2de58b84b5621a4908db001ace493d8aa2e5383f4c8b1847efd256938592f63ef75a41521284b3640d3a7442a

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

Module Service.MakeSource

Parameters

Signature

Sourceval find_all : query:Sihl_database.Ql.t -> (Sihl_user__.Model.t list * Sihl_repository.Meta.t) Lwt.t
Sourceval find_opt : user_id:string -> Sihl_user__.Model.t option Lwt.t
Sourceval find : user_id:string -> Sihl_user__.Model.t Lwt.t
Sourceval find_by_email : email:string -> Sihl_user__.Model.t Lwt.t
Sourceval find_by_email_opt : email:string -> Sihl_user__.Model.t option Lwt.t
Sourceval update_password : ?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 : user:Sihl_user__.Model.t -> email:string -> username:string option -> Sihl_user__.Model.t Lwt.t
Sourceval set_password : ?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 : email:string -> password:string -> username:string option -> Sihl_user__.Model.t Lwt.t

Create and store a user.

Sourceval create_admin : 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 : ?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 : email:string -> password:string -> (Sihl_user__.Model.t, string) Result.t Lwt.t

Find user by email if password matches.

OCaml

Innovation. Community. Security.