Skip to content

Commit

Permalink
Merge pull request #191 from Xety/fix-ui
Browse files Browse the repository at this point in the history
Fixed the button in forgortPassword & resetPassword actions
  • Loading branch information
Emeric authored Nov 4, 2016
2 parents 5210b69 + fa703ea commit b7dd99e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
2 changes: 0 additions & 2 deletions src/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,6 @@ public function forgotPassword()
return $this->redirect(['controller' => 'pages', 'action' => 'home']);
}

$user = $this->Users->newEntity($this->request->data);

if ($this->request->is('post')) {
$user = $this->Users
->find()
Expand Down
18 changes: 10 additions & 8 deletions src/Template/Users/forgot_password.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="col-md-offset-2 col-md-8">
<section class="section animated bounceInLeft">
<div class="section-title">
<h3>
<?= __("Forgot your Password") ?>
</h3>
<div class="hr-divider">
<h3 class="hr-divider-content hr-divider-heading">
<?= __("Forgot your Password") ?>
</h3>
</div>
</div>

<?= $this->Form->create($user) ?>
<?= $this->Form->create() ?>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon">
Expand All @@ -49,13 +51,13 @@
</div>
<?= $this->Form->error('email') ?>
</div>
<div class="form-groups">
<div class="form-group text-center">
<?= $this->Recaptcha->display() ?>
</div>
<div class="form-group">
<div class="form-group text-center">
<?= $this->Form->button(
__('Reset {0}', '<i class="fa fa-arrow-right"></i>'),
['class' => 'btn btn-primary']
['class' => 'btn btn-primary-outline']
); ?>
</div>
<?= $this->Form->end(); ?>
Expand Down
14 changes: 8 additions & 6 deletions src/Template/Users/reset_password.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="col-md-offset-2 col-md-8">
<section class="section animated bounceInLeft">
<div class="section-title">
<h3>
<?= __("Reset your Password") ?>
</h3>
<div class="hr-divider">
<h3 class="hr-divider-content hr-divider-heading">
<?= __("Reset your Password") ?>
</h3>
</div>
</div>

<?= $this->Form->create($user) ?>
Expand Down Expand Up @@ -70,10 +72,10 @@
</div>
<?= $this->Form->error('password_confirm') ?>
</div>
<div class="form-group">
<div class="form-group text-center">
<?= $this->Form->button(
__('Reset {0}', '<i class="fa fa-arrow-right"></i>'),
['class' => 'btn btn-primary']
['class' => 'btn btn-primary-outline']
); ?>
</div>
<?= $this->Form->end(); ?>
Expand Down

0 comments on commit b7dd99e

Please sign in to comment.