Coherence.UnlockController (Coherence v0.8.0)

Handle unlock_with_token actions.

This controller provides the ability generate an unlock token, send the user an email and unlocking the account with a valid token.

Basic locking and unlocking does not use this controller.

Summary

Functions

Create and send the unlock token.

Handle the unlock link click.

Render the send reset link form.

Types

@type conn() :: Plug.Conn.t()
@type params() :: map()
@type schema() :: Ecto.Schema.t()

Functions

Link to this function

create(conn, params)

@spec create(conn(), params()) :: conn()

Create and send the unlock token.

Link to this function

edit(conn, params)

@spec edit(conn(), params()) :: conn()

Handle the unlock link click.

Link to this function

new(conn, params)

@spec new(conn(), params()) :: conn()

Render the send reset link form.