package sihl
The modular functional web framework
Install
Dune Dependency
Authors
Maintainers
Sources
sihl-0.1.3.tbz
sha256=3d1acdd1eae24a7131033656f90b5d20c1621e6ef92957edf88a09b8b5f2d9e9
sha512=d224f54e20a9465c7a03d534dadcb2b9a181ae87c13731840db945aab37534f6f3982c5cb25a197e90c17d8772da062b19fa92bb93ed53a8b736c3776a7776db
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
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