[snowy] Don't let openid users set passwords on their accounts



commit e7cd26ba434c4995a6ed115629ee8b8028164bc9
Author: Jeff Schroeder <jeffschroeder computer org>
Date:   Thu Sep 2 18:22:37 2010 -0700

    Don't let openid users set passwords on their accounts

 accounts/templates/accounts/preferences.html |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/accounts/templates/accounts/preferences.html b/accounts/templates/accounts/preferences.html
index b88f2fe..39c0e2a 100644
--- a/accounts/templates/accounts/preferences.html
+++ b/accounts/templates/accounts/preferences.html
@@ -4,6 +4,7 @@
 
 {% block content %}
 <h1>{% trans "Preferences" %}</h1>
+{% if user.has_usable_password %}
 <h3>{% trans "Change your password" %}</h3>
 <form method="POST">
     <table class="input-form">
@@ -19,6 +20,7 @@
     </table>
     <input type="hidden" name="password_form" value="1" />
 </form>
+{% endif %}
 
 <h3>{% trans "Change your Email address" %}</h3>
 <form method="POST">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]