This commit is contained in:
2020-04-12 16:33:08 -04:00
parent 24ea6b9ae7
commit 90309496e9
7 changed files with 145 additions and 34 deletions
@@ -1,5 +1,5 @@
<?php
$next_page = isset($next_page) ? $next_page : 0;
$next_page = isset($next_page) ? $next_page : 50;
?>
<body class="vertical-layout vertical-menu-modern 1-column navbar-floating footer-static bg-full-screen-image blank-page blank-page" data-open="click" data-menu="vertical-menu-modern" data-col="1-column">
@@ -29,7 +29,7 @@ $next_page = isset($next_page) ? $next_page : 0;
<div class="card-content">
<div class="card-body pt-1">
<?
if ($next_page == 0) {
if ($next_page == 50) {
?>
<p class="px-2">Please tell us your username.</p>
<form method="POST" action="/auth/resetpass">
@@ -72,7 +72,8 @@ $next_page = isset($next_page) ? $next_page : 0;
<?= $error_message ?>
</fieldset>
<div class="row pt-2">
<div class="col-12 col-md-6 mb-1">
</div>
<div class="col-12 col-md-6 mb-1">
<button type="submit" class="btn btn-primary btn-block px-0">Return Home</button>
</div>
@@ -80,23 +81,30 @@ $next_page = isset($next_page) ? $next_page : 0;
</form>
<?php
} else {
} else if ($next_page == 5500) {
?>
<form>
<form method="POST" action='/auth/completereset'>
<input type='hidden' name='reset_id' value='<?= $reset_id ?>'>
<input type='hidden' name='reset_key' value='<?= $reset_key ?>'>
<input type='hidden' name='username' value='<?= $username ?>'>
<fieldset class="form-label-group">
<input type="text" class="form-control" id="user-email" placeholder="Email" required>
<label for="user-email">Email</label>
<input type="text" class="form-control" id="user-email" placeholder="Email" value="<?= $username ?>" readonly required>
<label for="user-email">Username</label>
</fieldset>
<fieldset class="form-label-group">
<input type="password" class="form-control" id="user-password" placeholder="Password" required>
<input type="password" class="form-control" id="user-password" name='pass1' placeholder="Password" required>
<label for="user-password">Password</label>
</fieldset>
<fieldset class="form-label-group">
<input type="password" class="form-control" id="user-confirm-password" placeholder="Confirm Password" required>
<input type="password" class="form-control" id="user-confirm-password" name='pass2' placeholder="Confirm Password" required>
<label for="user-confirm-password">Confirm Password</label>
</fieldset>
<fieldset class="form-label-group">
<span style='color:red;'><?= $error_message ?></span>
</fieldset>
<div class="row pt-2">
<div class="col-12 col-md-6 mb-1">
<a href="/auth" class="btn btn-outline-primary btn-block px-0">Go Back to Login</a>
@@ -107,6 +115,30 @@ $next_page = isset($next_page) ? $next_page : 0;
</div>
</form>
<?php
} else {
?>
<form method="POST" action="/">
<fieldset class="form-label-group">
Something went wrong
</fieldset>
<fieldset class="form-label-group">
<span style="color:red;">We have an error, it is possible that the link expired before you attempted the reset. Simply start the process again or contact us..</span>
</fieldset>
<fieldset class="form-label-group">
<?= $error_message ?>
</fieldset>
<div class="row pt-2">
<div class="col-12 col-md-6 mb-1">
</div>
<div class="col-12 col-md-6 mb-1">
<button type="submit" class="btn btn-primary btn-block px-0">Return Home</button>
</div>
</div>
</form>
<?php
}
?>