Ignore:
Timestamp:
20 Nov 2007, 07:22:16 (17 years ago)
Author:
Henrik Bettermann
Message:

add logging message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2710 r2712  
    463463            return False
    464464        return getattr(student_entry,"password","not set") == password
    465        
     465
    466466    security.declarePublic('checkGenericPassword')
    467467    def checkGenericPassword(self,member_id):
     
    469469        if member_entry is None:
    470470            return False
    471         ltool = getToolByName(self, 'portal_layouts')   
     471        ltool = getToolByName(self, 'portal_layouts')
    472472        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
    474480
    475481    security.declareProtected(ModifyPortalContent,'editPassword') ###(
Note: See TracChangeset for help on using the changeset viewer.