View Source Claper.Accounts.User (Claper v1.7.0)

Link to this section Summary

Functions

Confirms the account by setting confirmed_at.

A user changeset for changing the email.

A user changeset for changing the password.

Verifies the password.

Validates the current password otherwise adds an error to the changeset.

Link to this section Functions

Confirms the account by setting confirmed_at.

Link to this function

email_changeset(user, attrs)

View Source

A user changeset for changing the email.

It requires the email to change otherwise an error is added.

Link to this function

password_changeset(user, attrs, opts \\ [])

View Source

A user changeset for changing the password.

Link to this function

registration_changeset(user, attrs, opts \\ [])

View Source
Link to this function

valid_password?(arg1, password)

View Source

Verifies the password.

If there is no user or the user doesn't have a password, we call Bcrypt.no_user_verify/0 to avoid timing attacks.

Link to this function

validate_current_password(changeset, password)

View Source

Validates the current password otherwise adds an error to the changeset.