Packages

Adds helpful extras to Guardian like default mailer support, as well as out of the box controllers and routes

Current section

Files

Jump to
sentinel lib sentinel web templates shared links.html.eex
Raw

lib/sentinel/web/templates/shared/links.html.eex

<%= if assigns.conn.private[:phoenix_controller] != Sentinel.Controllers.AuthController do %>
<%= link "Log in", to: Config.router_helper.auth_path(@conn, :new) %><br />
<% end %>
<%= if assigns.conn.private[:phoenix_controller] != Sentinel.Controllers.Html.UserController do %>
<%= link "Sign up", to: Config.router_helper.user_path(@conn, :new) %><br />
<% end %>
<%= if assigns.conn.private[:phoenix_controller] != Sentinel.Controllers.Html.UserController && assigns.conn.private[:phoenix_controller] != Sentinel.Controllers.Html.PasswordController do %>
<%= link "Forgot your password?", to: Config.router_helper.password_path(@conn, :new) %><br />
<% end %>
<%= if Config.confirmable != :false && assigns.conn.private[:phoenix_controller] != Sentinel.Controllers.Html.UserController do %>
<%= link "Didn't receive confirmation instructions?", to: Config.router_helper.user_path(@conn, :confirmation_instructions) %><br />
<% end %>