[Bps-public-commit] r20127 - in RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/Elements: .
falcone at bestpractical.com
falcone at bestpractical.com
Wed Oct 21 15:23:12 EDT 2009
Author: falcone
Date: Wed Oct 21 15:22:17 2009
New Revision: 20127
Added:
RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/Elements/
RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/Elements/Header/
RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/Elements/Header/Head
Log:
Use css to hide the password box for users with no password
This doesn't prevent updates, but most of the time when using
ExternalAuth, if you're logged in and don't have an internal password,
being prompted to change the internal password is confusing to the end
user.
For SelfService users, just don't grant them ModifySelf to hide the
password change.
Added: RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/Elements/Header/Head
==============================================================================
--- (empty file)
+++ RT-Authen-ExternalAuth/trunk/html/Callbacks/ExternalAuth/Elements/Header/Head Wed Oct 21 15:22:17 2009
@@ -0,0 +1,11 @@
+% if ( $session{CurrentUser}->UserObj->__Value('Password') eq '*NO-PASSWORD*') {
+<style>
+#user-prefs-password {
+ display: none;
+}
+</style>
+% }
+<%INIT>
+return unless $m->request_comp->path eq '/User/Prefs.html';
+return unless $session{CurrentUser} && $session{CurrentUser}->id;
+</%INIT>
More information about the Bps-public-commit
mailing list