Coherence.ConfirmationController (Coherence v0.8.0)

Handle confirmation actions.

A single action, edit, is required for the confirmation module.

Summary

Functions

Create a new confirmation token and resend the email.

Handle the user's click on the confirm link in the confirmation email.

Handle resending a confirmation email.

Functions

Link to this function

create(conn, params)

@spec create(Plug.Conn.t(), map()) :: Plug.Conn.t()

Create a new confirmation token and resend the email.

Link to this function

edit(conn, params)

@spec edit(Plug.Conn.t(), map()) :: Plug.Conn.t()

Handle the user's click on the confirm link in the confirmation email.

Validate that the confirmation token has not expired and sets confirmation_sent_at field to nil, marking the user as confirmed.

Link to this function

new(conn, params)

@spec new(Plug.Conn.t(), map()) :: Plug.Conn.t()

Handle resending a confirmation email.

Request the user's email, reset the confirmation token and resend the email.