Pow v0.1.0-alpha.1 Pow.Ecto.Schema.Changeset View Source

Handles changeset for pow user.

Configuration options

  • :password_min_length minimum password length, defaults to 10
  • :password_max_length maximum password length, defaults to 4096
  • :password_hash_methods what password hash and verify method to use, defaults to:

    {&Pow.Ecto.Schema.Changeset.pbkdf2_hash/1,
     &Pow.Ecto.Schema.Changeset.pbkdf2_verify/2}

Link to this section Summary

Link to this section Functions

Link to this function changeset(config, user_or_changeset, params) View Source
Link to this function current_password_changeset(changeset, params, config) View Source
current_password_changeset(
  Ecto.Schema.t() | Ecto.Changeset.t(),
  map(),
  Pow.Config.t()
) :: Ecto.Changeset.t()
Link to this function password_changeset(changeset, params, config) View Source
password_changeset(Ecto.Schema.t() | Ecto.Changeset.t(), map(), Pow.Config.t()) ::
  Ecto.Changeset.t()
Link to this function pbkdf2_hash(password) View Source
pbkdf2_hash(binary()) :: binary()
Link to this function pbkdf2_verify(hash, password) View Source
pbkdf2_verify(binary(), binary()) :: boolean()
Link to this function user_id_field_changeset(changeset, params, config) View Source
user_id_field_changeset(
  Ecto.Schema.t() | Ecto.Changeset.t(),
  map(),
  Pow.Config.t()
) :: Ecto.Changeset.t()
Link to this function verify_password(map, password, config) View Source
verify_password(Ecto.Schema.t(), binary(), Pow.Config.t()) :: boolean()