diff options
Diffstat (limited to 'app/view/templates/user.php')
-rw-r--r-- | app/view/templates/user.php | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/app/view/templates/user.php b/app/view/templates/user.php index faa44aa..31df074 100644 --- a/app/view/templates/user.php +++ b/app/view/templates/user.php @@ -40,15 +40,25 @@ $this->layout('layout', ['title' => 'user', 'stylesheets' => [$css . 'home.css'] <label for="cookie">Cookie conservation time <i>(In days)</i></label> <p>When you tick the <em>remember-me</em> checkbox during login, you can choose how much time <strong>W</strong> will remember you.</p> - <input type="password" name="password" id="password" minlength="<?= Wcms\Model::PASSWORD_MIN_LENGTH ?>" maxlength="<?= Wcms\Model::PASSWORD_MAX_LENGTH ?>"> - <label for="password">New password</label> + <input type="submit" value="update preferences"> - <input type="hidden" name="passwordhash" value="1"> + </form> + + <form action="<?= $this->url('userpassword') ?>" method="post"> + <h3>Password</h3> + + <label for="password1">Type your new password</label> + </br> + <input type="password" name="password1" id="password1" minlength="<?= Wcms\Model::PASSWORD_MIN_LENGTH ?>" required> + </br> + <label for="password2">Confirm password</label> + </br> + <input type="password" name="password2" id="password2" minlength="<?= Wcms\Model::PASSWORD_MIN_LENGTH ?>" required> <p>Password have to be between <?= Wcms\Model::PASSWORD_MIN_LENGTH ?> and <?= Wcms\Model::PASSWORD_MAX_LENGTH ?> characters long.</p> - <input type="submit" value="update preferences"> - + <input type="submit" value="update password"> + </form> </div> |