Changeset 2712 for WAeUP_SRP


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

add logging message

Location:
WAeUP_SRP
Files:
2 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') ###(
  • WAeUP_SRP/uniben/profiles/default/layouts/members.xml

    r2710 r2712  
    116116  <property name="display_width">20</property>
    117117  <property name="size_max">0</property>
     118  <property name="check_words">uniben uniben1 UNIBEN UNIBEN1</property> 
    118119 </widget>
    119120<widget name="roles" meta_type="Generic MultiSelect Widget">
Note: See TracChangeset for help on using the changeset viewer.