Move error message to view

This commit is contained in:
ricola 2026-04-20 14:10:38 -06:00
parent 267dc439f1
commit 1acc369774
2 changed files with 2 additions and 2 deletions

View file

@ -134,7 +134,7 @@ post '/login' do
redirect '/'
end
else
@error = _("Incorrect email or password.")
@error = true
erb :login
end
end

View file

@ -2,7 +2,7 @@
<% if @error %>
<div class="alert alert-warning mb-4">
<p><%= @error %></p>
<p><%= _("Incorrect email or password.") %></p>
<p class="mb-0"><a href="/reset"><%= _("Reset password") %></a></p>
</div>
<% end %>