frenzy/lib/frenzy_web/templates/login/login.html.eex

26 lines
812 B
Elixir

<h1>Login</h1>
<%= form_tag Routes.login_path(@conn, :login_post), method: :post do %>
<div class="row mb-2">
<label for="username" class="col-sm-2 col-form-label">Username</label>
<div class="col-sm-10">
<input type="text" name="username" id="username" class="form-control">
</div>
</div>
<div class="row mb-2">
<label for="password" class="col-sm-2 col-form-label">Password</label>
<div class="col-sm-10">
<input type="password" name="password" id="password" class="form-control">
</div>
</div>
<div class="row mb-2">
<div class="col-sm-10">
<%= submit "Log In", class: "btn btn-primary" %>
</div>
</div>
<% end %>
<%= if @oidc_enabled? do %>
<a href="<%= Routes.login_path(@conn, :ueberauth_request, "oidc") %>">Log In with OIDC</a>
<% end %>