mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +00:00
Fix notice
This commit is contained in:
parent
cbc9491f75
commit
c7c5f48066
1 changed files with 1 additions and 4 deletions
|
@ -134,10 +134,7 @@ class REST {
|
|||
} elseif (isset($env['REMOTE_USER'])) {
|
||||
$user = $env['REMOTE_USER'];
|
||||
}
|
||||
if (strlen($user)) {
|
||||
$valid = Arsse::$user->auth($user, $password);
|
||||
}
|
||||
if ($valid) {
|
||||
if (strlen($user) && Arsse::$user->auth($user, $password)) {
|
||||
$req = $req->withAttribute("authenticated", true);
|
||||
$req = $req->withAttribute("authenticatedUser", $user);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue