fix typo in cookie check

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
This commit is contained in:
Rob Gill
2018-06-01 09:52:07 +10:00
committed by GitHub
parent f4261115e4
commit 96039f52a5

View File

@@ -42,7 +42,7 @@
// Check for and authorize from persistent cookie
if (isset($_COOKIE["persistentlogin"]))
{
if ($pwhash = $_COOKIE["persistentlogin"])
if ($pwhash === $_COOKIE["persistentlogin"])
{
$auth = true;
// Refresh cookie with new expiry