Browse Source

Fix notice

microsub
J. King 6 years ago
parent
commit
c7c5f48066
  1. 5
      lib/REST.php

5
lib/REST.php

@ -134,10 +134,7 @@ class REST {
} elseif (isset($env['REMOTE_USER'])) { } elseif (isset($env['REMOTE_USER'])) {
$user = $env['REMOTE_USER']; $user = $env['REMOTE_USER'];
} }
if (strlen($user)) { if (strlen($user) && Arsse::$user->auth($user, $password)) {
$valid = Arsse::$user->auth($user, $password);
}
if ($valid) {
$req = $req->withAttribute("authenticated", true); $req = $req->withAttribute("authenticated", true);
$req = $req->withAttribute("authenticatedUser", $user); $req = $req->withAttribute("authenticatedUser", $user);
} }

Loading…
Cancel
Save