mirror of
https://github.com/team-alembic/ash_authentication_phoenix.git
synced 2024-09-21 14:03:46 +12:00
9 lines
259 B
Text
9 lines
259 B
Text
<%= if @current_user do %>
|
|
<h2>Current user: <%= @current_user.email %></h2>
|
|
|
|
<%= link("Sign out", to: Routes.auth_path(@conn, :sign_out)) %>
|
|
<% else %>
|
|
<h2>Please sign in</h2>
|
|
|
|
<%= link("Sign in", to: Routes.auth_path(@conn, :sign_in)) %>
|
|
<% end %>
|