Initial commit
Couldnt keep the history unfortunately.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
use App\Classes\Config;
|
||||
use App\Classes\User;
|
||||
?>
|
||||
|
||||
<div class="content shadow p-4 mb-4">
|
||||
<?= $this->partial('../app/views/partials/message.php'); ?>
|
||||
|
||||
<?php if (User::check()) { ?>
|
||||
You're already logged in. Click to <a href="<?= \App\Classes\Config::c('APP_URL'); ?>/logout">log out</a>.
|
||||
|
||||
<?php if ($this->redirectURL) { ?>
|
||||
<script type="text/javascript">
|
||||
setTimeout(function() {
|
||||
window.location.replace("<?= $this->redirectURL; ?>");
|
||||
}, 3000);
|
||||
</script>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<h1>Sign in</h1>
|
||||
<?= $this->partial($this->injectView); ?>
|
||||
<br>
|
||||
<a href="<?= Config::c('APP_URL'); ?>/reset-password">Forgot password</a>?
|
||||
<?php } ?>
|
||||
|
||||
<div class="pb-5"></div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user