Service.MakeSourcemodule Log : Log.Service.Sig.SERVICEmodule CmdService : Cmd.Service.Sig.SERVICEmodule DbService : Data.Db.Service.Sig.SERVICEmodule Repo : Sig.REPOSITORYinclude Core.Container.SERVICEval find_all :
Core.Ctx.t ->
query:Data.Ql.t ->
(User__.User_core.User.t list * Data.Repo.Meta.t) Lwt.tval 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.tval update_details :
Core.Ctx.t ->
user:User__.User_core.User.t ->
email:string ->
username:string option ->
User__.User_core.User.t Lwt.tval 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.tSet 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.tCreate and store a user.
val create_admin :
Core.Ctx.t ->
email:string ->
password:string ->
username:string option ->
User__.User_core.User.t Lwt.tCreate 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.tCreate 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.tFind user by email if password matches.