package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Sig : sig ... end
module Authz : sig ... end
module Service : sig ... end
module Seed : sig ... end
module PasswordReset : sig ... end
type t
val ctx_add_user : t -> Core.Ctx.t -> Core.Ctx.t
val confirmed : t -> Base.bool
val admin : t -> Base.bool
val status : t -> Base.string
val password : t -> Base.string
val username : t -> Base.string Base.option
val email : t -> Base.string
val id : t -> Base.string
val created_at : t -> Ptime.t
val to_yojson : t -> Yojson.Safe.t
val show : t -> Base.string
val equal : t -> t -> Base.bool
val make : id:Base.string -> email:Base.string -> ?username:Base.string -> password:Base.string -> status:Base.string -> admin:Base.bool -> confirmed:Base.bool -> created_at:Ptime.t -> Base.unit -> t
val alcotest : t Alcotest.testable
val confirm : t -> t
val set_user_password : t -> Base.string -> t
val set_user_details : t -> email:Base.string -> username:Base.string Base.option -> t
val is_admin : t -> Base.bool
val is_owner : t -> Base.string -> Base.bool
val is_confirmed : t -> Base.bool
val matches_password : Base.string -> t -> Base.bool
val validate_new_password : password:Base.string -> password_confirmation:Base.string -> password_policy:(Base.string -> (Base.unit, Base.string) Base.Result.t) -> (Base.unit, Base.string) Base.Result.t
val validate_change_password : t -> old_password:Base.string -> new_password:Base.string -> new_password_confirmation:Base.string -> password_policy:(Base.string -> (Base.unit, Base.string) Base.Result.t) -> (Base.unit, Base.string) Base.Result.t
val create : email:Base.string -> password:Base.string -> username:Base.string Base.option -> admin:Base.bool -> confirmed:Base.bool -> t
val system : t
val t : t Caqti_type.t
val require_user : Core.Ctx.t -> (t, Base.string) Base.Result.t
val find_user : Core.Ctx.t -> t Base.option
OCaml

Innovation. Community. Security.