mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Introduce Auth::setUser()
This commit is contained in:
parent
3a66b0a950
commit
990a5e4d61
@ -256,6 +256,23 @@ class Auth
|
|||||||
return $this->user;
|
return $this->user;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the authenticated user
|
||||||
|
*
|
||||||
|
* Note that this method just sets the authenticated user and thus bypasses our default authentication process in
|
||||||
|
* {@link setAuthenticated()}.
|
||||||
|
*
|
||||||
|
* @param User $user
|
||||||
|
*
|
||||||
|
* @return $this
|
||||||
|
*/
|
||||||
|
public function setUser(User $user)
|
||||||
|
{
|
||||||
|
$this->user = $user;
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to authenticate the user with the current session
|
* Try to authenticate the user with the current session
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user