Changeset 15302


Ignore:
Timestamp:
18 Jan 2019, 09:46:41 (6 years ago)
Author:
Henrik Bettermann
Message:

Enable strict password validation.

File:
1 edited

Legend:

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

    r15287 r15302  
    410410        errors = []
    411411        if len(pw) < 6:
    412             errors.append(translate(_('Password must have at least 6 chars.')))
     412            errors.append(translate(_(
     413                'Password must have at least 6 characters.')))
    413414        if pw != pw_repeat:
    414415            errors.append(translate(_('Passwords do not match.')))
     
    424425        (?=.*[a-z])    Ensure password has one lowercase letter.
    425426        .{8,}          Ensure password is of length 8.
    426         $              End anchor.
     427        $              End anchor
    427428        """
    428 
    429         # temporarily disabled
    430         # /kofa/trunk/src/waeup/kofa/doctests/pages.txt line 176 not met
    431         return self.validate_password(pw, pw_repeat)
    432 
    433429        check_pw = re.compile(r"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9]).{8,}$").match
    434430        errors = []
Note: See TracChangeset for help on using the changeset viewer.