mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Add custom login page
This commit is contained in:
+2
-8
@@ -341,14 +341,8 @@
|
||||
//
|
||||
// If auth is required and not set, i.e. no successfully logged in,
|
||||
// we show the reduced version of the summary (index) page
|
||||
if(!$auth && (!isset($indexpage) || isset($_GET['login']))){ ?>
|
||||
<div class="page-header">
|
||||
<h1>Login required!</h1>
|
||||
</div>
|
||||
<form action="" method="POST">
|
||||
Password: <input type="password" name="pw"> <input type="submit" value="Login">
|
||||
</form>
|
||||
<?php
|
||||
if(!$auth && (!isset($indexpage) || isset($_GET['login']))){
|
||||
require "php/loginpage.php";
|
||||
require "footer.php";
|
||||
exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user