From: ivan Date: Fri, 30 Sep 2011 05:27:39 +0000 (+0000) Subject: check old password if supplied, RT#13656 X-Git-Tag: freeside_2_3_1~258 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=33c725fc1419daeb11b818d12ac6cd7ec499c310 check old password if supplied, RT#13656 --- diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 16a631118..9533d6a73 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -2149,7 +2149,7 @@ sub myaccount_passwd { or return { 'error' => "Service not found" }; if ( exists($p->{'old_password'}) ) { - return "Incorrect password." + return { 'error' => "Incorrect password." }; unless $svc_acct->check_password($p->{'old_password'}); }