瀏覽代碼

Shamil Yakupov: no reset for logged user

Serghey Rodin 13 年之前
父節點
當前提交
b2f1c3ca4b
共有 1 個文件被更改,包括 4 次插入0 次删除
  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");