Compare commits

..

No commits in common. "3d9decdafd2dcc30a7a5b10f66254fcdaf1ec791" and "a4d2e3369ca4b5e138b6cd30408e7a8d9e287db1" have entirely different histories.

3 changed files with 2 additions and 12 deletions

View file

@ -235,7 +235,7 @@ class Ldap extends Backend {
);
}
Log::debug('User "%s" found in LDAP directory (%s):\n%s', $username, $dn, vardump($info));
return new User($username, '\\EesyPHP\\Auth\\Ldap', $info);
return new User($username, '\\EesyPHP\\Auth\\LDAP', $info);
}
/**

View file

@ -83,14 +83,4 @@ class User {
);
}
/**
* Magic method to allow pretty cast to string
* @return string
*/
public function __toString() {
if (isset($this -> name))
return sprintf('%s (%s)', $this -> name, $this -> username);
return $this -> namename;
}
}

View file

@ -163,7 +163,7 @@ class Log {
$_SERVER['REMOTE_ADDR'],
);
if (Auth::enabled())
$msg[] = (Auth::user()?Auth::user():'anonymous');
$msg[] = (Auth::user()?Auth::user()->username:'anonymous');
$msg[] = $level;
$msg[] = $message;
$msg = implode(' - ', $msg)."\n";