Change mail auth cookie name to mail_auth

This commit is contained in:
Retro_Guy 2021-06-11 08:03:24 +00:00
parent 662046f50f
commit 0531055378
1 changed files with 2 additions and 2 deletions

View File

@ -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 = "<?php echo $authkey; ?>";
var savename = "<?php echo stripslashes($name); ?>";
var auth_expire = "<?php echo $auth_expire; ?>";
document.cookie = "auth="+authcookie+"; max-age="+auth_expire;
document.cookie = "mail_auth="+authcookie+"; max-age="+auth_expire;
document.cookie = "mail_name="+savename;
</script>
<?php