- 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
130 lines
7.3 KiB
PHP
130 lines
7.3 KiB
PHP
<?php
|
|
use App\Core\View;
|
|
|
|
// Definir variáveis para o layout
|
|
$page_title = 'Auth lockscreen cover';
|
|
$page_description = 'Página Auth lockscreen 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 fst-italic">" Great! Clean code, clean design, easy for customization. Thanks very much! "</p>
|
|
</div>
|
|
<div class="carousel-item">
|
|
<p class="fs-15 fst-italic">" The theme is really great with an amazing customer support."</p>
|
|
</div>
|
|
<div class="carousel-item">
|
|
<p class="fs-15 fst-italic">" 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>
|
|
<h5 class="text-primary">Lock Screen</h5>
|
|
<p class="text-muted">Enter your password to unlock the screen!</p>
|
|
</div>
|
|
<div class="user-thumb text-center">
|
|
<img src="<?php echo View::asset('/assets/images/users/avatar-1.jpg'); ?>" class="rounded-circle img-thumbnail avatar-lg" alt="thumbnail">
|
|
<h5 class="font-size-15 mt-3">Pedro Alves</h5>
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<form>
|
|
<div class="mb-3">
|
|
<label class="form-label" for="userpassword">Password</label>
|
|
<input type="password" class="form-control" id="userpassword" placeholder="Enter password" required>
|
|
</div>
|
|
<div class="mb-2 mt-4">
|
|
<button class="btn btn-success w-100" type="submit">Unlock</button>
|
|
</div>
|
|
</form><!-- end form -->
|
|
</div>
|
|
|
|
<div class="mt-5 text-center">
|
|
<p class="mb-0">Not you ? return <a href="/auth-signin-cover/" class="fw-semibold text-primary text-decoration-underline"> Signin</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 start-0">
|
|
<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 -->
|
|
<?php
|
|
}
|
|
]);
|
|
?>
|