sentinel v2.0.0 Sentinel.Changeset.PasswordResetter

Module responsible for handling the password reset logic changeset

Summary

Functions

Adds the changes needed to create a password reset token. Returns {unhashed_password_reset_token, changeset}

Generates a random token. Returns {token, hashed_token}

Changes a user’s identity ueberauth password, if the reset token matches. Params should be Ueberauth.Auth struct Returns the changeset

Functions

create_changeset(auth)

Adds the changes needed to create a password reset token. Returns {unhashed_password_reset_token, changeset}

generate_token()

Generates a random token. Returns {token, hashed_token}.

reset_changeset(auth, params)

Changes a user’s identity ueberauth password, if the reset token matches. Params should be Ueberauth.Auth struct Returns the changeset