fix password match error message

This commit is contained in:
Kyle Drake 2014-10-07 02:27:40 +02:00
parent d3c1546d45
commit 584c7cfbd6

2
app.rb
View file

@ -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