Ignore:
Timestamp:
9 Jan 2019, 21:17:08 (6 years ago)
Author:
Henrik Bettermann
Message:

Stored insecure passwords are no longer accepted.
Officers with an insecure password can't login and are
redirected to the ChangePasswordRequestPage to request a
new password.

File:
1 edited

Legend:

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

    r14699 r15287  
    273273            name.replace('-', ' - ')).replace(' - ', '-')
    274274
    275     def genPassword(self, length=8, chars=string.letters + string.digits):
     275    def genPassword(self, length=4, chars=string.letters + string.digits):
    276276        """Generate a random password.
    277277        """
    278         return ''.join([r().choice(chars) for i in range(length)])
     278        return ''.join([
     279            r().choice(string.uppercase) +
     280            r().choice(string.lowercase) +
     281            r().choice(string.digits) for i in range(length)])
    279282
    280283    def sendCredentials(self, user, password=None, url_info=None, msg=None):
Note: See TracChangeset for help on using the changeset viewer.