package sihl
The modular functional web framework
Install
Dune Dependency
Authors
Maintainers
Sources
sihl-0.1.2.tbz
sha256=69705a3a35f204acfdda62f61056e3f0ec3ef5bcd1df1508be65b066a0b1df9c
sha512=1987d211f56d0261eefbae978065a4e6781d60ad94b08597875307e5cf6e5a1b79787d9c79f784f5a9f77c35203cfd0b488841a07adfd87b0710d6fd65422b94
doc/sihl.user/User/Service/Make/index.html
Module Service.Make
Source
Parameters
module Log : Log.Service.Sig.SERVICE
module CmdService : Cmd.Service.Sig.SERVICE
module DbService : Data.Db.Service.Sig.SERVICE
module Repo : Sig.REPOSITORY
Signature
include Core.Container.SERVICE
Source
val find_all :
Core.Ctx.t ->
query:Data.Ql.t ->
(User__.User_core.User.t list * Data.Repo.Meta.t) Lwt.t
Source
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
Source
val update_details :
Core.Ctx.t ->
user:User__.User_core.User.t ->
email:string ->
username:string option ->
User__.User_core.User.t Lwt.t
Source
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.
Source
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.
Source
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.
Source
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.
Source
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)"
>
On This Page