From 584c7cfbd651e73655756bf4fa6bf6d1d7bed65e Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Tue, 7 Oct 2014 02:27:40 +0200 Subject: [PATCH] fix password match error message --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 2521f35d..e454d303 100644 --- a/app.rb +++ b/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