Skip to content

Commit

Permalink
delete change pawword form
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrocadete committed Dec 9, 2020
1 parent 10932fe commit fb00c2c
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions views/pages/backoffice/editProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,5 @@
<input type="submit" value="Save">
</div>
</form>

<hr>

<form action="<?= $routerService->urlFor('profilePasswordAction') ?>" method="post">
<input type="hidden" name="<?= $csrf['nameKey'] ?>" value="<?= $csrf['name'] ?>">
<input type="hidden" name="<?= $csrf['valueKey'] ?>" value="<?= $csrf['value'] ?>">
<input type="hidden" name="<?= $username ?>" value="<?= $username ?>">
<div
<?php if (isset($flash['password'][0]) or isset($flash['password2'][0])): ?>style="color:red"<?php endif; ?>>
<label for="password">Password*: </label>
<input type="password" name="password" id="password"
<?php if (isset($formOldValues['password'])): ?>value="<?= $formOldValues['password'] ?>"<?php endif; ?>
required>
<?php if (isset($flash['password'][0])): ?><p><?= $flash['password'][0] ?></p><?php endif; ?>
</div>
<div <?php if (isset($flash['password2'][0])): ?>style="color:red"<?php endif; ?>>
<label for="password2">Confirm password*: </label>
<input type="password" name="password2" id="password2" required>
<?php if (isset($flash['password2'][0])): ?><p><?= $flash['password2'][0] ?></p><?php endif; ?>
</div>
<div>
<input disabled type="submit" value="Change password">
</div>
</form>
</div>
</div>

0 comments on commit fb00c2c

Please sign in to comment.