소스 검색

Error message on signin.php now resets if reloading the page

Clément K 2 년 전
부모
커밋
f960cefb25
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      signin.php

+ 2 - 0
signin.php

@@ -12,6 +12,8 @@ try {
     $template = $twig->load('signin.html.twig');
 
     echo $template->render();
+
+    unset($_SESSION['message']);
 } catch (Exception $e) {
     die ('ERROR: ' . $e->getMessage());
 }