package sihl
The modular functional web framework
Install
Dune Dependency
Authors
Maintainers
Sources
sihl-queue-0.1.9.tbz
sha256=77f0813d75a88edd14b3396e8b848d94c31c28803299b4b1bd4b78b1de4a2e80
sha512=a8907bc35ea14b7c3a7d638979a2a274860202b2de58b84b5621a4908db001ace493d8aa2e5383f4c8b1847efd256938592f63ef75a41521284b3640d3a7442a
doc/sihl.authn/Sihl_authn/Service/Make/argument-2-UserService/index.html
Parameter Make.UserService
include Sihl_core.Container.Service.Sig
val lifecycle : Sihl_core.Container.Lifecycle.t
val find_all :
query:Sihl_database.Ql.t ->
(Sihl_user__.Model.t list * Sihl_repository.Meta.t) Lwt.t
val 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.
val create_user :
email:string ->
password:string ->
username:string option ->
Sihl_user__.Model.t Lwt.t
Create and store a user.
val 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.
val 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.
val login :
email:string ->
password:string ->
(Sihl_user__.Model.t, string) Result.t Lwt.t
Find user by email if password matches.
val register : unit -> Sihl_core.Container.Service.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>