mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:20:12 +01:00
sso fix
This commit is contained in:
parent
30f5aafc32
commit
b747921b7e
@ -429,7 +429,7 @@ class ModelUserAuth extends Model {
|
||||
if(isset($query->row['dn'])) {
|
||||
$a = $query->row;
|
||||
|
||||
if(isset($a['mail']['count'])) { $username = $a['mail'][0]; } else { $username = $a['mail']; }
|
||||
if(is_array($a['mail'])) { $username = $a['mail'][0]; } else { $username = $a['mail']; }
|
||||
$username = strtolower(preg_replace("/^smtp\:/i", "", $username));
|
||||
|
||||
if($username == '') {
|
||||
|
Loading…
Reference in New Issue
Block a user