Selaa lähdekoodia

fixed resend login form

Piotr Labudda 7 vuotta sitten
vanhempi
commit
f8adfeabc3
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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() {
 	public static function endHtml() {
 		Theme::footer();
 		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>";
 		echo "\n</body></html>";
 	}
 	}