Changeset 2712 for WAeUP_SRP/base/WAeUPTool.py
- Timestamp:
- 20 Nov 2007, 07:22:16 (17 years ago)
- File:
-
- 1 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') ###(
Note: See TracChangeset for help on using the changeset viewer.