diff options
author | ivan <ivan> | 2011-09-30 05:30:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-09-30 05:30:08 +0000 |
commit | 91b8edf5c5930a5364168b6a0860859b0932bdf3 (patch) | |
tree | 5d43dea3a4a0f146832725f1f4444def9ace5209 | |
parent | 33c725fc1419daeb11b818d12ac6cd7ec499c310 (diff) |
check old password if supplied, RT#13656
-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 9533d6a73..a32ef3305 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 { 'error' => "Incorrect password." }; + return { 'error' => "Incorrect password." } unless $svc_acct->check_password($p->{'old_password'}); } |