Register

<.form let={f} for={@changeset} action={Routes.user_registration_path(@conn, :create)}> <%= if @changeset.action do %>

Oops, something went wrong! Please check the errors below.

<% end %> <%= label f, :email %> <%= email_input f, :email, required: true %> <%= error_tag f, :email %> <%= label f, :username %> <%= text_input f, :username, required: true %> <%= error_tag f, :username %> <%= label f, :password %> <%= password_input f, :password, required: true %> <%= error_tag f, :password %>
<%= submit "Register" %>

<%= link "Log in", to: Routes.user_session_path(@conn, :new) %> | <%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %>