summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-09-30 05:27:39 +0000
committerivan <ivan>2011-09-30 05:27:39 +0000
commit33c725fc1419daeb11b818d12ac6cd7ec499c310 (patch)
treee831f275fbe9fbb0ff3a23f72e777decdac9f706
parent3846d4d0394f42c80dd8088c6763962b40bb929b (diff)
check old password if supplied, RT#13656
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm2
1 files changed, 1 insertions, 1 deletions
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'});
}