diff options
author | ivan <ivan> | 2011-09-30 05:27:38 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-09-30 05:27:38 +0000 |
commit | a473ab56f0fcceb4dbe2ddd4fdf3940974bfc91f (patch) | |
tree | 1d691b29595224eddde2cea3c19cfe058ef0bb2f /FS | |
parent | 09f9108ef6909ed453539448bd2e318016acc52a (diff) |
check old password if supplied, RT#13656
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/ClientAPI/MyAccount.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 16a6311..9533d6a 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'}); } |