Coherence v0.5.2 Coherence.ConfirmationController

Handle confirmation actions.

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

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

Link to this section Functions

Link to this function create(conn, params)
create(Plug.Conn.t(), Map.t()) :: Plug.Conn.t()

Create a new confirmation token and resend the email.

Link to this function edit(conn, params)
edit(Plug.Conn.t(), Map.t()) :: 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)
new(Plug.Conn.t(), Map.t()) :: Plug.Conn.t()

Handle resending a confirmation email.

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