Coherence v0.3.0 Coherence.PasswordController

Handle password recovery actions.

Controller that handles the recover password feature.

Actions:

  • new - render the recover password form
  • create - verify user’s email address, generate a token, and send the email
  • edit - render the reset password form
  • update - verify password, password confirmation, and update the database

Summary

Functions

Create the recovery token and send the email

Render the password and password confirmation form

Render the recover password form

Verify the passwords and update the database

Functions

create(conn, params)

Create the recovery token and send the email

edit(conn, params)

Render the password and password confirmation form.

new(conn, params)

Render the recover password form.

update(conn, params)

Verify the passwords and update the database