Authentication\Manager: fix fromRemoteUser boolean
This used to be always true in case an autologin backend was enabled. We only have a REMOTE_USER if there is such.
This commit is contained in:
parent
559457f730
commit
4bada86731
|
@ -237,7 +237,9 @@ class Manager
|
|||
*/
|
||||
public function authenticateFromRemoteUser()
|
||||
{
|
||||
$this->fromRemoteUser = true;
|
||||
if (array_key_exists('REMOTE_USER', $_SERVER)) {
|
||||
$this->fromRemoteUser = true;
|
||||
}
|
||||
$this->authenticateFromSession();
|
||||
if ($this->user !== null) {
|
||||
if (array_key_exists('REMOTE_USER', $_SERVER) && $this->user->getUsername() !== $_SERVER["REMOTE_USER"]) {
|
||||
|
|
Loading…
Reference in New Issue