From ee8d84d4aba6c1e38f31b9d4737e02a299f040ad Mon Sep 17 00:00:00 2001 From: Muhammad Abid Date: Mon, 15 Jan 2018 12:15:08 +0400 Subject: [PATCH] Update login Login won't work unless you set $authsecret key along with $userid in auths. --- login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/login.php b/login.php index 1bdb76e..ab85681 100644 --- a/login.php +++ b/login.php @@ -18,6 +18,7 @@ # Username / password OK, set the cookie and redirect to index.php $authsecret = $r->hget("user:$userid","auth"); +$r->hset("auths",$authsecret,$userid); setcookie("auth",$authsecret,time()+3600*24*365); header("Location: index.php"); ?>