mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
fix password match error message
This commit is contained in:
parent
d3c1546d45
commit
584c7cfbd6
1 changed files with 1 additions and 1 deletions
2
app.rb
2
app.rb
|
@ -708,7 +708,7 @@ post '/change_password' do
|
|||
require_login
|
||||
|
||||
if !Site.valid_login?(current_site.username, params[:current_password])
|
||||
current_site.errors.add :password, 'Your provided password does not match the current one.'
|
||||
flash[:error] = 'Your provided password does not match the current one.'
|
||||
redirect '/settings#password'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue