mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
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…
x
Reference in New Issue
Block a user