Browse Source

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

Clément K 2 năm trước cách đây
mục cha
commit
f960cefb25
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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());
 }