summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-09-30 05:30:06 +0000
committerivan <ivan>2011-09-30 05:30:06 +0000
commitf38a8a7b537c33676dbba48cbd64a735fc0101eb (patch)
tree19dca98b4b9c6cf8e151a5c0305d1946ce806078
parenta473ab56f0fcceb4dbe2ddd4fdf3940974bfc91f (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 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'});
}