Coherence.RegistrationController (Coherence v0.8.0)

Handle account registration actions.

Actions:

  • new - render the register form
  • create - create a new user account
  • edit - edit the user account
  • update - update the user account
  • delete - delete the user account

Summary

Functions

Create the new user account.

Delete a registration.

Edit the registration.

Render the new user form.

Show the registration page.

Update the registration.

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 the new user account.

Creates the new user account. Create and send a confirmation if this option is enabled.

Link to this function

delete(conn, params)

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

Delete a registration.

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

Edit the registration.

Link to this function

new(conn, params)

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

Render the new user form.

Link to this function

redirect_or_login(conn, user, params, arg4)

@spec show(conn(), any()) :: conn()

Show the registration page.

Link to this function

update(conn, params)

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

Update the registration.