X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FSettings.pm;h=5780c2b92921411655ba2e7b136fdcdcaa780d4b;hb=cb527c92ddb92c89a8aa55ba92369cd2312763ed;hp=3f09a435f8e57979dfa99e37b466432c901900bb;hpb=d5a506d05cc2bf53a76b6bf4beef12a34aedf023;p=ndwebbie.git diff --git a/lib/NDWeb/Controller/Settings.pm b/lib/NDWeb/Controller/Settings.pm index 3f09a43..5780c2b 100644 --- a/lib/NDWeb/Controller/Settings.pm +++ b/lib/NDWeb/Controller/Settings.pm @@ -117,6 +117,8 @@ sub changePassword : Local { }); $query->execute($c->req->param('pass'),$c->req->param('oldpass'),$c->user->id); + $c->flash(error => "Old password was invalid") unless $query->rows; + $c->res->redirect($c->uri_for('')); }