Fixed namespaces (PHPCI -> PHPCensor)
This commit is contained in:
parent
60d74b0b44
commit
60a2b7282a
238 changed files with 1014 additions and 863 deletions
31
src/PHPCensor/View/Session/forgotPassword.phtml
Normal file
31
src/PHPCensor/View/Session/forgotPassword.phtml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php use PHPCensor\Helper\Lang; ?>
|
||||
<?php if (isset($emailed)): ?>
|
||||
<p class="alert alert-success" style="margin-bottom: 0">
|
||||
<?php Lang::out('reset_emailed'); ?>
|
||||
</p>
|
||||
<?php else: ?>
|
||||
<?php if (empty($error)): ?>
|
||||
<div class="" style="margin-bottom: 15px;">
|
||||
<?php Lang::out('reset_header'); ?>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php print $error; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="">
|
||||
<form class="form" action="<?php print PHPCI_URL; ?>session/forgot-password" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="email"><?php Lang::out('reset_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="<?php Lang::out('reset_send_email'); ?>">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<?php endif; ?>
|
||||
9
src/PHPCensor/View/Session/login.phtml
Normal file
9
src/PHPCensor/View/Session/login.phtml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?php use PHPCensor\Helper\Lang; ?>
|
||||
<?php if($failed): ?>
|
||||
<p class="alert alert-danger"><?php Lang::out('login_error'); ?></p>
|
||||
<?php endif; ?>
|
||||
<?php print $form; ?>
|
||||
|
||||
<a style="margin-top: -22px; font-size: 0.85em; color: #246" class="pull-right" href="<?php print PHPCI_URL; ?>session/forgot-password">
|
||||
<?php Lang::out('forgotten_password_link'); ?>
|
||||
</a>
|
||||
26
src/PHPCensor/View/Session/resetPassword.phtml
Normal file
26
src/PHPCensor/View/Session/resetPassword.phtml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php use PHPCensor\Helper\Lang; ?>
|
||||
<?php if (empty($error)): ?>
|
||||
|
||||
<div class="box-header">
|
||||
<?php Lang::out('reset_enter_password'); ?>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<form class="form" action="<?php print PHPCI_URL; ?>session/reset-password/<?php print $id; ?>/<?php print $key; ?>" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="password"><?php Lang::out('reset_new_password'); ?></label>
|
||||
<input type="password" id="password" name="password" class="form-control" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<input class="btn btn-success" type="submit" value="<?php Lang::out('reset_change_password'); ?>">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="alert alert-danger" style="margin-bottom: 0">
|
||||
<?php print $error; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue