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