summaryrefslogtreecommitdiff
path: root/modules/gallery/views/user_profile.html.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-02-02 21:36:01 -0800
committerBharat Mediratta <bharat@menalto.com>2010-02-02 21:36:01 -0800
commit6e1b761b12e13566875804c33efe2ae130ffa32e (patch)
treed16f4efd3696349f22c83e880cbd65a1754cdb56 /modules/gallery/views/user_profile.html.php
parentb351ee48fe09efd570e22a02b82174c39ad86d46 (diff)
Require the current password to change your password.
Fixes ticket #585. Separate out the password change form from the regular edit user form. Require the old password to enter a new one. While I'm at it, roll the password strength javascript into a Form_Script element so that we can get rid of the old view (which incidentally fixes a bug where the password strength meter would go away on form errors).
Diffstat (limited to 'modules/gallery/views/user_profile.html.php')
-rw-r--r--modules/gallery/views/user_profile.html.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/gallery/views/user_profile.html.php b/modules/gallery/views/user_profile.html.php
index f35f8c3f..78e1c579 100644
--- a/modules/gallery/views/user_profile.html.php
+++ b/modules/gallery/views/user_profile.html.php
@@ -57,13 +57,16 @@
</a>
<? endif ?>
<? if ($editable): ?>
- <a class="g-button ui-icon-right ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("form/edit/users/{$user->id}") ?>">
+ <a class="g-button ui-icon-right ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("form/edit/users/{$user->id}") ?>">
<?= t("Edit") ?>
</a>
+ <a class="g-button ui-icon-right ui-state-default ui-corner-all g-dialog-link" href="<?= url::site("users/form_change_password/{$user->id}") ?>">
+ <?= t("Change password") ?>
+ </a>
<? endif ?>
<a id="g-profile-return" class="g-button ui-icon-right ui-state-default ui-corner-all" href="#">
<?= t("Return") ?>
</a>
</div>
-</div> \ No newline at end of file
+</div>