Phauxth v0.10.0 Phauxth.Confirm.PassReset

Confirm a user and reset the password.

Options

There are two options:

  • identifier - how user is identified in the confirmation request

    • this should be an atom, and the default is :email
  • key_validity - the length, in minutes, that the token is valid for

    • the default is 60 minutes (1 hour)

Examples

Summary

Functions

check_confirm(arg1)

Function to confirm the user by checking the token.

check_key(user, key, valid_secs)
log(arg1, user_id, ok_log)