Forgot to add a way to login
This commit is contained in:
@@ -75,8 +75,7 @@
|
|||||||
require_once("inc/header.inc.php");
|
require_once("inc/header.inc.php");
|
||||||
if ($StaticFunctions->getUserSessionStatus() == true) { // CHECK STATUS
|
if ($StaticFunctions->getUserSessionStatus() == true) { // CHECK STATUS
|
||||||
header('Location: index.php'); // ELSE HOME
|
header('Location: index.php'); // ELSE HOME
|
||||||
} else {
|
} else { ?>
|
||||||
$auth->requireAuth();?>
|
|
||||||
<!-- CONTENT START -->
|
<!-- CONTENT START -->
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@@ -115,11 +114,15 @@ endif;
|
|||||||
<br />
|
<br />
|
||||||
<form class="form-signin" action="login.php" method="post">
|
<form class="form-signin" action="login.php" method="post">
|
||||||
<div class="input-group input-group-lg">
|
<div class="input-group input-group-lg">
|
||||||
|
<?php if (Registry::AUTHMETHOD == 'INTERNAL') { ?>
|
||||||
<input type="text" class="form-control" aria-describedby="button-addon2" id="username" name="username" placeholder="<?php echo $transLang['USERNAME']; ?>" required autofocus>
|
<input type="text" class="form-control" aria-describedby="button-addon2" id="username" name="username" placeholder="<?php echo $transLang['USERNAME']; ?>" required autofocus>
|
||||||
<input type="password" class="form-control" aria-describedby="button-addon2" id="password" name="password" placeholder="<?php echo $transLang['PASSWORD']; ?>" required autofocus>
|
<input type="password" class="form-control" aria-describedby="button-addon2" id="password" name="password" placeholder="<?php echo $transLang['PASSWORD']; ?>" required autofocus>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button class="btn btn-success btn-block" type="submit" id="button-addon2" name="login"><?php echo $transLang['LOGIN']; ?></button>
|
<button class="btn btn-success btn-block" type="submit" id="button-addon2" name="login"><?php echo $transLang['LOGIN']; ?></button>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } else { ?>
|
||||||
|
<a class="btn btn-success btn-block" id="button-addon2" name="login" href="<?php echo $auth->getLoginURL(); ?>"><?php echo $transLang['LOGIN']; ?></a>
|
||||||
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user