Changeset 2712
- Timestamp:
- 20 Nov 2007, 07:22:16 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2710 r2712 463 463 return False 464 464 return getattr(student_entry,"password","not set") == password 465 465 466 466 security.declarePublic('checkGenericPassword') 467 467 def checkGenericPassword(self,member_id): … … 469 469 if member_entry is None: 470 470 return False 471 ltool = getToolByName(self, 'portal_layouts') 471 ltool = getToolByName(self, 'portal_layouts') 472 472 unsecure_words = ltool._getOb('members')['w__password'].check_words 473 return getattr(member_entry,"password","not set") in unsecure_words 473 password = getattr(member_entry,"password","not set") 474 is_unsecure = password in unsecure_words 475 if is_unsecure: 476 logger = logging.getLogger('WAeUPTool.removeDeletedDocIds') 477 logger.info('Member %s tried to log in with unsecure password %s' %(member_id,password)) 478 return is_unsecure 479 474 480 475 481 security.declareProtected(ModifyPortalContent,'editPassword') ###( -
WAeUP_SRP/uniben/profiles/default/layouts/members.xml
r2710 r2712 116 116 <property name="display_width">20</property> 117 117 <property name="size_max">0</property> 118 <property name="check_words">uniben uniben1 UNIBEN UNIBEN1</property> 118 119 </widget> 119 120 <widget name="roles" meta_type="Generic MultiSelect Widget">
Note: See TracChangeset for help on using the changeset viewer.