phpci/PHPCI/View/Session/forgotPassword.phtml
2014-05-08 21:38:32 +01:00

33 lines
1.2 KiB
PHTML

<?php if (isset($emailed)): ?>
<p class="alert alert-success" style="margin-bottom: 0">
We've emailed you a link to reset your password.
</p>
<?php else: ?>
<?php if (empty($error)): ?>
<div class="panel panel-success" style="margin-bottom: 0">
<div class="panel-heading">
<strong>Don't worry!</strong><br>Just enter your email address below and we'll email you a link to reset your password.
</div>
<?php else: ?>
<div class="panel panel-danger" style="margin-bottom: 0">
<div class="panel-heading">
<?php print $error; ?>
</div>
<?php endif; ?>
<div class="panel-body">
<form class="form" action="<?php print PHPCI_URL; ?>session/forgot-password" method="POST">
<div class="form-group">
<label for="email">Enter your email address:</label>
<input id="email" name="email" class="form-control" required>
</div>
<div class="form-group">
<input class="btn btn-success" type="submit" value="Email password reset">
</div>
</form>
</div>
</div>
<?php endif; ?>