Browse Source

fixed resend login form

Piotr Labudda 7 năm trước cách đây
mục cha
commit
f8adfeabc3
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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>";
 	}