浏览代码

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());
 }