diff --git a/Rocksolid_Light/rocksolid/mail.php b/Rocksolid_Light/rocksolid/mail.php index d7b8797..72bc44e 100644 --- a/Rocksolid_Light/rocksolid/mail.php +++ b/Rocksolid_Light/rocksolid/mail.php @@ -17,7 +17,7 @@ include "head.inc"; $auth_expire = 14400; $logged_in = false; if(!isset($_POST['username'])) { - $_POST['username'] = $_COOKIE['cookie_name']; + $_POST['username'] = $_COOKIE['mail_name']; } $name = $_POST['username']; if(password_verify($_POST['username'].get_user_config($_POST['username'],'encryptionkey'), $_COOKIE['auth'])) { @@ -31,8 +31,8 @@ include "head.inc"; var authcookie = ""; var savename = ""; var auth_expire = ""; - document.cookie = "auth="+authcookie+"; max-age="+auth_expire+";"; - document.cookie = "cookie_name=" + savename; + document.cookie = "auth="+authcookie+"; max-age="+auth_expire; + document.cookie = "mail_name="+savename;