Skip to content

Commit 3dfaaf6

Browse files
authored
Fix broken HTML on login/reset pages (hestiacp#4247)
1 parent b3cbc80 commit 3dfaaf6

File tree

13 files changed

+8
-33
lines changed

13 files changed

+8
-33
lines changed

web/login/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,3 +454,4 @@ function authenticate_user($user, $password, $twofa = "") {
454454
($_SESSION["LOGIN_STYLE"] != "old" ? "" : "_a") .
455455
".php";
456456
}
457+
require_once "../templates/includes/login-footer.php";

web/reset/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,3 +247,4 @@
247247
require_once "../templates/pages/login/reset_3.php";
248248
}
249249
}
250+
require_once "../templates/includes/login-footer.php";

web/reset2fa/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@
6464

6565
require_once "../templates/header.php";
6666
require_once "../templates/pages/login/reset2fa.php";
67+
require_once "../templates/includes/login-footer.php";

web/templates/footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
</main>
22
<?php require $_SERVER["HESTIA"] . "/web/templates/includes/app-footer.php"; ?>
3-
</div>
3+
</div> <?php // Closes `<div class="app">` in header.php ?>
44
<?php if (
55
$_SESSION["userContext"] === "admin" &&
66
$_SESSION["POLICY_SYSTEM_HIDE_SERVICES"] !== "yes" &&
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
</div> <?php // Closes `<div class="app">` in header.php ?>
2+
3+
</body>
4+
</html>

web/templates/pages/login/login.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,3 @@
1919
</button>
2020
</form>
2121
</div>
22-
23-
</body>
24-
25-
</html>

web/templates/pages/login/login_1.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,3 @@
2828
</div>
2929
</form>
3030
</div>
31-
32-
</body>
33-
34-
</html>

web/templates/pages/login/login_2.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,3 @@
2929
</div>
3030
</form>
3131
</div>
32-
33-
</body>
34-
35-
</html>

web/templates/pages/login/login_a.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,3 @@
3030
</button>
3131
</form>
3232
</div>
33-
34-
</body>
35-
36-
</html>

web/templates/pages/login/reset2fa.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,3 @@
4242
</form>
4343
<?php } ?>
4444
</div>
45-
46-
</body>
47-
48-
</html>

0 commit comments

Comments
 (0)