package sihl-contract
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include Sihl_core.Container.Service.Sig
val lifecycle : Sihl_core.Container.Lifecycle.t
val set_password :
?password_policy:(string -> (unit, string) Result.t) ->
user:t ->
password:string ->
password_confirmation:string ->
unit ->
(t, string) Result.t Lwt.t
Set the password of a user without knowing the old password.
This feature is typically used by admins.
Create and store a user.
Create and store a user that is also an admin.
val register_user :
?password_policy:(string -> (unit, string) Stdlib.result) ->
?username:string ->
email:string ->
password:string ->
password_confirmation:string ->
unit ->
(t, error) Result.t Lwt.t
Create and store new user.
Provide password_policy
to check whether the password fulfills certain criteria.
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)"
>