[freeside-commits] branch master updated. 2472b5d17c4788e3b7b076def566bcd1170ec7ba

Ivan ivan at 420.am
Sun Jun 14 01:05:41 PDT 2015


The branch, master has been updated
       via  2472b5d17c4788e3b7b076def566bcd1170ec7ba (commit)
      from  906e5a16cd0dc5e50507794baa3b35c0bc994467 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2472b5d17c4788e3b7b076def566bcd1170ec7ba
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sun Jun 14 01:05:39 2015 -0700

    when there are duplciate username at 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

diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index ec76e27..36989db 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];
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/ClientAPI/MyAccount.pm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)




More information about the freeside-commits mailing list