Ignore:
Timestamp:
9 Jan 2019, 11:47:37 (6 years ago)
Author:
Henrik Bettermann
Message:

Increase password strength. Officers are now required
to set a password which has at least 8 characters, contains
at least one uppercase letter, one lowercase letter and one
digit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py

    r15163 r15286  
    649649        """
    650650
     651    def validate_secured_password(self, pw, pw_repeat):
     652        """ Validates a password by comparing it with
     653        control password and checks password strength by
     654        matching with the regular expression:
     655
     656        ^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9]).{8,}$
     657
     658        ^              Start anchor
     659        (?=.*[A-Z])    Ensure password has one uppercase letters.
     660        (?=.*[0-9])    Ensure password has one digit.
     661        (?=.*[a-z])    Ensure password has one lowercase letter.
     662        .{8,}          Ensure password is of length 8.
     663        $              End anchor.
     664        """
     665
    651666
    652667class IUsersContainer(IKofaObject):
Note: See TracChangeset for help on using the changeset viewer.