Coherence v0.3.0 Coherence.ConfirmationController

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

create(conn, params)

Create a new confirmation token and resend the email.

edit(conn, params)

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.

new(conn, params)

Handle resending a confirmation email.

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