Add link to password change form on user profile page

Submitted by Sascha Silbe on Nov. 29, 2010, 5:44 p.m.

Details

Message ID 1291052669-5059-1-git-send-email-sascha-pgp@silbe.org
State Accepted
Headers show

Commit Message

Sascha Silbe Nov. 29, 2010, 5:44 p.m.
Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
---
 templates/patchwork/profile.html |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

We couldn't find any way to change a password from within the
existing web interface, other than navigating to a "hidden" URL.

I've added a new box "Authentication" instead of using "Settings"
so that settings for related future features like OpenID support and
logging in via SSL public keys can be grouped together.

Comments

Jeremy Kerr Dec. 10, 2010, 4:27 a.m.
Hi Sascha,

> We couldn't find any way to change a password from within the
> existing web interface, other than navigating to a "hidden" URL.
> 
> I've added a new box "Authentication" instead of using "Settings"
> so that settings for related future features like OpenID support and
> logging in via SSL public keys can be grouped together.

Thanks, applied.

I've also added some custom templates so that the password change doesn't look 
different from the rest of the site.

Cheers,


Jeremy

Patch hide | download patch | download mbox

diff --git a/templates/patchwork/profile.html b/templates/patchwork/profile.html
index e2d0b90..dd5d35e 100644
--- a/templates/patchwork/profile.html
+++ b/templates/patchwork/profile.html
@@ -117,6 +117,11 @@  address.</p>
 </form>
 </div>
 
+<div class="box">
+<h2>Authentication</h2>
+<a href="{% url django.contrib.auth.views.password_change %}">Change password</a>
+</div>
+
 </div>
 
 <p style="clear: both"></p>