- Add complete Auth module with login, logout, lock screen functionality - Fix 401 error on error monitoring page by adding /error-monitoring/ to public patterns - Improve lock screen with proper form handling and unlock functionality - Add RoleModel and role management views - Add BaseModel for common model functionality - Update authentication system and middleware - Add troubleshooting documentation - Update assets and build tools
164 lines
9.9 KiB
PHP
164 lines
9.9 KiB
PHP
<?php
|
|
use App\Core\View;
|
|
|
|
// Definir variáveis para o layout
|
|
$page_title = 'Auth twostep cover';
|
|
$page_description = 'Página Auth twostep cover';
|
|
|
|
// Incluir o layout principal
|
|
View::render('layouts/auth.php', [
|
|
'title' => $page_title,
|
|
'description' => $page_description,
|
|
'page_content' => function() {
|
|
?>
|
|
<?php
|
|
View::include('layouts/main.php'); ?>
|
|
|
|
<!-- auth-page wrapper -->
|
|
<div class="auth-page-wrapper auth-bg-cover py-5 d-flex justify-content-center align-items-center min-vh-100">
|
|
<div class="bg-overlay"></div>
|
|
<!-- auth-page content -->
|
|
<div class="auth-page-content overflow-hidden pt-lg-5">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="card overflow-hidden">
|
|
<div class="row justify-content-center g-0">
|
|
<div class="col-lg-6">
|
|
<div class="p-lg-5 p-4 auth-one-bg h-100">
|
|
<div class="bg-overlay"></div>
|
|
<div class="position-relative h-100 d-flex flex-column">
|
|
<div class="mb-4">
|
|
<a href="/index/" class="d-block">
|
|
<img src="<?php echo \App\Core\AppConfig::getLogoLight(); ?>" alt="" height="18">
|
|
</a>
|
|
</div>
|
|
<div class="mt-auto">
|
|
<div class="mb-3">
|
|
<i class="ri-double-quotes-l display-4 text-success"></i>
|
|
</div>
|
|
|
|
<div id="qoutescarouselIndicators" class="carousel slide" data-bs-ride="carousel">
|
|
<div class="carousel-indicators">
|
|
<button type="button" data-bs-target="#qoutescarouselIndicators" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>
|
|
<button type="button" data-bs-target="#qoutescarouselIndicators" data-bs-slide-to="1" aria-label="Slide 2"></button>
|
|
<button type="button" data-bs-target="#qoutescarouselIndicators" data-bs-slide-to="2" aria-label="Slide 3"></button>
|
|
</div>
|
|
<div class="carousel-inner text-center text-white pb-5">
|
|
<div class="carousel-item active">
|
|
<p class="fs-15">" Great! Clean code, clean design, easy for customization. Thanks very much! "</p>
|
|
</div>
|
|
<div class="carousel-item">
|
|
<p class="fs-15">" The theme is really great with an amazing customer support."</p>
|
|
</div>
|
|
<div class="carousel-item">
|
|
<p class="fs-15">" Great! Clean code, clean design, easy for customization. Thanks very much! "</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end carousel -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end col -->
|
|
|
|
<div class="col-lg-6">
|
|
<div class="p-lg-5 p-4">
|
|
<div class="mb-4">
|
|
<div class="avatar-lg mx-auto">
|
|
<div class="avatar-title bg-light text-primary display-5 rounded-circle">
|
|
<i class="ri-mail-line"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="text-muted text-center mx-lg-3">
|
|
<h4 class="">Verify Your Email</h4>
|
|
<p>Please enter the 4 digit code sent to <span class="fw-semibold">[email protected]</span></p>
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<form autocomplete="off">
|
|
<div class="row">
|
|
<div class="col-3">
|
|
<div class="mb-3">
|
|
<label for="digit1-input" class="visually-hidden">Digit 1</label>
|
|
<input type="text" class="form-control form-control-lg bg-light border-light text-center" onkeyup="moveToNext(1, event)" maxLength="1" id="digit1-input">
|
|
</div>
|
|
</div><!-- end col -->
|
|
|
|
<div class="col-3">
|
|
<div class="mb-3">
|
|
<label for="digit2-input" class="visually-hidden">Digit 2</label>
|
|
<input type="text" class="form-control form-control-lg bg-light border-light text-center" onkeyup="moveToNext(2, event)" maxLength="1" id="digit2-input">
|
|
</div>
|
|
</div><!-- end col -->
|
|
|
|
<div class="col-3">
|
|
<div class="mb-3">
|
|
<label for="digit3-input" class="visually-hidden">Digit 3</label>
|
|
<input type="text" class="form-control form-control-lg bg-light border-light text-center" onkeyup="moveToNext(3, event)" maxLength="1" id="digit3-input">
|
|
</div>
|
|
</div><!-- end col -->
|
|
|
|
<div class="col-3">
|
|
<div class="mb-3">
|
|
<label for="digit4-input" class="visually-hidden">Digit 4</label>
|
|
<input type="text" class="form-control form-control-lg bg-light border-light text-center" onkeyup="moveToNext(4, event)" maxLength="1" id="digit4-input">
|
|
</div>
|
|
</div><!-- end col -->
|
|
</div>
|
|
|
|
<div class="mt-3">
|
|
<button type="button" class="btn btn-success w-100">Confirm</button>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="mt-5 text-center">
|
|
<p class="mb-0">Didn't receive a code ? <a href="/auth-pass-reset-cover/" class="fw-semibold text-primary text-decoration-underline">Resend</a> </p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end col -->
|
|
</div>
|
|
<!-- end row -->
|
|
</div>
|
|
<!-- end card -->
|
|
</div>
|
|
<!-- end col -->
|
|
|
|
</div>
|
|
<!-- end row -->
|
|
</div>
|
|
<!-- end container -->
|
|
</div>
|
|
<!-- end auth page content -->
|
|
|
|
<!-- footer -->
|
|
<footer class="footer">
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="text-center">
|
|
<p class="mb-0">©
|
|
<script>document.write(new Date().getFullYear())</script> <?php echo \App\Core\AppConfig::getCompanyName(); ?>.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
<!-- end Footer -->
|
|
</div>
|
|
<!-- end auth-page-wrapper -->
|
|
|
|
<!-- two-step-verification js -->
|
|
<script src="<?php echo View::asset('/assets/js/pages/two-step-verification.init.js'); ?>"></script>
|
|
<?php
|
|
}
|
|
]);
|
|
?>
|