Coherence v0.5.1 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

Link to this section 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

Link to this section Types

Link to this type conn()
conn() :: Plug.Conn.t()
Link to this type params()
params() :: Map.t()
Link to this type schema()
schema() :: Ecto.Schema.t()

Link to this section Functions

Link to this function create(conn, params)
create(conn(), params()) :: conn()

Create the recovery token and send the email

Link to this function edit(conn, params)
edit(conn(), params()) :: conn()

Render the password and password confirmation form.

Link to this function new(conn, params)
new(conn(), params()) :: conn()

Render the recover password form.

Link to this function update(conn, params)
update(conn(), params()) :: conn()

Verify the passwords and update the database