Move reset link to error message
This commit is contained in:
parent
35f8c3f392
commit
51cfbd5548
1 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,10 @@
|
|||
<h1 class="mb-5"><%= _("Login") %></h1>
|
||||
|
||||
<% if @error %>
|
||||
<p class="alert alert-warning mb-4"><%= @error %></p>
|
||||
<div class="alert alert-warning mb-4">
|
||||
<p><%= @error %></p>
|
||||
<p class="mb-0"><a href="/reset"><%= _("Reset password") %></a></p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<form action="/login" name="login" method="post" class="mb-5">
|
||||
|
|
@ -18,7 +21,6 @@
|
|||
<input type="hidden" name="timezone" value="UTC">
|
||||
</form>
|
||||
<p><a href="/signup"><%= _("Create account") %></a></p>
|
||||
<p><a href="/reset"><%= _("Reset password") %></a></p>
|
||||
|
||||
<script>
|
||||
document.login.timezone.value = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue