Move error message to view
This commit is contained in:
parent
267dc439f1
commit
1acc369774
2 changed files with 2 additions and 2 deletions
2
vedia.rb
2
vedia.rb
|
|
@ -134,7 +134,7 @@ post '/login' do
|
|||
redirect '/'
|
||||
end
|
||||
else
|
||||
@error = _("Incorrect email or password.")
|
||||
@error = true
|
||||
erb :login
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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 %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue