瀏覽代碼

fixed resend login form

Piotr Labudda 7 年之前
父節點
當前提交
f8adfeabc3
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      SE/se-lib/UI.php

+ 3 - 0
SE/se-lib/UI.php

@@ -43,6 +43,9 @@ class UI {
 
 	public static function endHtml() {
 		Theme::footer();
+		if ('POST' === V::get('REQUEST_METHOD', '', $_SERVER) && 'LOGIN' === V::get('LOGIN', '', $_POST)) {
+			echo "\n" . UI::h('script', [], "history.replaceState(null, '', window.location.href)");
+		}
 		echo "\n</body></html>";
 	}