Update reset.php
authorPatrick McGuire <insidenothing@gmail.com>
Thu, 21 May 2020 15:46:10 +0000 (11:46 -0400)
committerGitHub <noreply@github.com>
Thu, 21 May 2020 15:46:10 +0000 (11:46 -0400)
reset.php

index 72192d0..7fd0288 100644 (file)
--- a/reset.php
+++ b/reset.php
@@ -1,4 +1,5 @@
 <?PHP
+$save_invite = $_COOKIE['invite'];
 /* delete ALL cookies */
 foreach ( $_COOKIE as $key => $value ){
        unset($_COOKIE[$key]);
@@ -14,5 +15,6 @@ if (isset($_SERVER['HTTP_COOKIE'])) {
         setcookie($name, '', time()-1000, '/');
     }
 }
+setcookie("invite", $save_invite);
 header('Location: index.php');
 ?>