소스 검색

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");