SaltDns. Accounts. User
(Salt v1.0.0)
Summary
Functions
Confirms the account by setting confirmed_at.
A user changeset for registering or changing the email.
The language of the console this person chose.
The languages of the console.
A changeset for a user created at first sign-in through the OpenID Connect
provider: the verified email, the provider's sub, confirmed, no password.
sub is set from the verified ID token, never cast from user input.
A user changeset for changing the password.
Verifies the password.
Types
Functions
Confirms the account by setting confirmed_at.
A user changeset for registering or changing the email.
It requires the email to change otherwise an error is added.
Options
:validate_unique- Set to false if you don't want to validate the uniqueness of the email, useful when displaying live validations. Defaults totrue.
The language of the console this person chose.
The languages of the console.
A changeset for a user created at first sign-in through the OpenID Connect
provider: the verified email, the provider's sub, confirmed, no password.
sub is set from the verified ID token, never cast from user input.
A user changeset for changing the password.
It is important to validate the length of the password, as long passwords may be very expensive to hash for certain algorithms.
Options
:hash_password- Hashes the password so it can be stored securely in the database and ensures the password field is cleared to prevent leaks in the logs. If password hashing is not needed and clearing the password field is not desired (like when using this changeset for validations on a LiveView form), this option can be set tofalse. Defaults totrue.
Verifies the password.
If there is no user or the user doesn't have a password, we call
Argon2.no_user_verify/0 to avoid timing attacks.