package sihl
The modular functional web framework
Install
Dune Dependency
Authors
Maintainers
Sources
sihl-0.1.2.tbz
sha256=69705a3a35f204acfdda62f61056e3f0ec3ef5bcd1df1508be65b066a0b1df9c
sha512=1987d211f56d0261eefbae978065a4e6781d60ad94b08597875307e5cf6e5a1b79787d9c79f784f5a9f77c35203cfd0b488841a07adfd87b0710d6fd65422b94
doc/sihl.authn/Authn/Service/Make/argument-3-UserService/index.html
Parameter Make.UserService
include Core.Container.SERVICE
val add_user : User__.User_core.User.t -> Core.Ctx.t -> Core.Ctx.t
val require_user_opt : Core.Ctx.t -> User__.User_core.User.t option
val require_user : Core.Ctx.t -> User__.User_core.User.t
val find_all :
Core.Ctx.t ->
query:Data.Ql.t ->
(User__.User_core.User.t list * Data.Repo.Meta.t) Lwt.t
val find_opt :
Core.Ctx.t ->
user_id:string ->
User__.User_core.User.t option Lwt.t
val find : Core.Ctx.t -> user_id:string -> User__.User_core.User.t Lwt.t
val find_by_email : Core.Ctx.t -> email:string -> User__.User_core.User.t Lwt.t
val find_by_email_opt :
Core.Ctx.t ->
email:string ->
User__.User_core.User.t option Lwt.t
val update_password :
Core.Ctx.t ->
?password_policy:(string -> (unit, string) Result.t) ->
user:User__.User_core.User.t ->
old_password:string ->
new_password:string ->
new_password_confirmation:string ->
unit ->
(User__.User_core.User.t, string) Result.t Lwt.t
val update_details :
Core.Ctx.t ->
user:User__.User_core.User.t ->
email:string ->
username:string option ->
User__.User_core.User.t Lwt.t
val set_password :
Core.Ctx.t ->
?password_policy:(string -> (unit, string) Result.t) ->
user:User__.User_core.User.t ->
password:string ->
password_confirmation:string ->
unit ->
(User__.User_core.User.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 :
Core.Ctx.t ->
email:string ->
password:string ->
username:string option ->
User__.User_core.User.t Lwt.t
Create and store a user.
val create_admin :
Core.Ctx.t ->
email:string ->
password:string ->
username:string option ->
User__.User_core.User.t Lwt.t
Create and store a user that is also an admin.
val register :
Core.Ctx.t ->
?password_policy:(string -> (unit, string) result) ->
?username:string ->
email:string ->
password:string ->
password_confirmation:string ->
unit ->
(User__.User_core.User.t, string) Result.t Lwt.t
Create and store new user.
Provide password_policy
to check whether the password fulfills certain criteria.
val login :
Core.Ctx.t ->
email:string ->
password:string ->
(User__.User_core.User.t, string) Result.t Lwt.t
Find user by email if password matches.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>