From c7c5f480664c49ce5fd68fd34539812350732204 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Wed, 24 Jan 2018 23:25:54 -0500 Subject: [PATCH] Fix notice --- lib/REST.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/REST.php b/lib/REST.php index 340707a..ce49f17 100644 --- a/lib/REST.php +++ b/lib/REST.php @@ -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); }