Initial
This commit is contained in:
35
web/templates/pages/login/login_2.php
Normal file
35
web/templates/pages/login/login_2.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<div class="login">
|
||||
<a href="/" class="u-block u-mb40">
|
||||
<img src="/images/logo.svg" alt="<?= htmlentities($_SESSION["APP_NAME"]) ?>" width="100" height="120">
|
||||
</a>
|
||||
<form id="form_login" method="post" action="/login/">
|
||||
<input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
|
||||
<h1 class="login-title">
|
||||
<?= _("Two-factor Authentication") ?>
|
||||
</h1>
|
||||
<?php if (!empty($error)) { ?>
|
||||
<p class="error"><?= $error ?></p>
|
||||
<?php } ?>
|
||||
<div class="u-mb20">
|
||||
<label for="twofa" class="form-label u-side-by-side">
|
||||
<?= _("2FA Token") ?>
|
||||
<a class="login-form-link" href="/reset2fa/">
|
||||
<?= _("Forgot Token") ?>
|
||||
</a>
|
||||
</label>
|
||||
<input type="text" class="form-control" name="twofa" id="twofa" autocomplete="one-time-code" required autofocus>
|
||||
</div>
|
||||
<div class="u-side-by-side">
|
||||
<button type="submit" class="button">
|
||||
<i class="fas fa-right-to-bracket"></i><?= _("Login") ?>
|
||||
</button>
|
||||
<a href="/login/?logout" class="button button-secondary">
|
||||
<?= _("Back") ?>
|
||||
</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user