Browse Source

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

Clément K 2 years ago
parent
commit
f960cefb25
1 changed files with 2 additions and 0 deletions
  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());
 }