Ver Fonte

Shamil Yakupov: no reset for logged user

Serghey Rodin há 12 anos atrás
pai
commit
b2f1c3ca4b
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      web/reset/index.php

+ 4 - 0
web/reset/index.php

@@ -3,6 +3,10 @@ session_start();
 define('NO_AUTH_REQUIRED',true);
 $TAB = 'RESET PASSWORD';
 
+if (isset($_SESSION['user'])) {
+    header("Location: /list/user");
+}
+
 // Main include
 include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");