summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-06-14 01:05:41 -0700
committerIvan Kohler <ivan@freeside.biz>2015-06-14 01:05:41 -0700
commitd708f21c1c33e062abd730031b388aae9e668031 (patch)
tree75e0d49c3ab29545644c068e2daa751d0a628781
parente29124c4dcf4886bd9a32d0b52c66156d3aa66d3 (diff)
when there are duplciate username@domain records, and neither selfservice_server-primary_only or selfservice_server-login-svcpart designate one for login, throw and error rather than picking one arbitrarily
-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 d0bef87eb..8acc1a610 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -284,7 +284,7 @@ sub login {
return { error => 'User not found.' } unless @svc_acct;
- #return { error => 'Multiple users.' } if scalar(@svc_acct) > 1;
+ return { error => 'Multiple users.' } if scalar(@svc_acct) > 1;
my $svc_acct = $svc_acct[0];