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 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 of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val pp : Caml.Format.formatter -> t -> Base.unit
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, Base.string) Base.Result.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 t : t Caqti_type.t
OCaml

Innovation. Community. Security.