From 0531055378968d0e1363b1fd011ee85cb4c85277 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Fri, 11 Jun 2021 08:03:24 +0000 Subject: [PATCH] Change mail auth cookie name to mail_auth --- Rocksolid_Light/rocksolid/mail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rocksolid_Light/rocksolid/mail.php b/Rocksolid_Light/rocksolid/mail.php index fb5281d..4c25150 100644 --- a/Rocksolid_Light/rocksolid/mail.php +++ b/Rocksolid_Light/rocksolid/mail.php @@ -23,7 +23,7 @@ include "head.inc"; $_POST['username'] = $_COOKIE['mail_name']; } $name = $_POST['username']; - if((password_verify($_POST['username'].$keys[0].get_user_config($_POST['username'],'encryptionkey'), $_COOKIE['auth'])) || (password_verify($_POST['username'].$keys[1].get_user_config($_POST['username'],'encryptionkey'), $_COOKIE['auth']))) { + if((password_verify($_POST['username'].$keys[0].get_user_config($_POST['username'],'encryptionkey'), $_COOKIE['mail_auth'])) || (password_verify($_POST['username'].$keys[1].get_user_config($_POST['username'],'encryptionkey'), $_COOKIE['mail_auth']))) { $logged_in = true; } else { if(check_bbs_auth($_POST['username'], $_POST['password'])) { @@ -34,7 +34,7 @@ include "head.inc"; var authcookie = ""; var savename = ""; var auth_expire = ""; - document.cookie = "auth="+authcookie+"; max-age="+auth_expire; + document.cookie = "mail_auth="+authcookie+"; max-age="+auth_expire; document.cookie = "mail_name="+savename;