Roundup Tracker - Issues

Message5936

Author rouilj
Recipients ber, rouilj, schlatterbeck
Date 2017-02-26.03:57:16
Message-id <1488081436.94.0.528442188854.issue2550921@psf.upfronthosting.co.za>
In-reply-to
I created an auditor in my tracker. Recording the details here in case
they are useful before we get the core fixed:

in existing userauditor.py added:

valid_username = re.compile('^[a-z0-9_@!%.-]+$', re.IGNORECASE)

at the top of the file.

Added to audit_user_fields:

    if 'username' in newvalues:
        if not valid_username.match(newvalues['username']):
            raise ValueError, "Username/Login Name must consist only of
the letters a-z (any case), digits 0-9 and the symbols: @._-!%"invalid
"%s"'%address


This should allow email addresses as usernames.
History
Date User Action Args
2017-02-26 03:57:16rouiljsetmessageid: <1488081436.94.0.528442188854.issue2550921@psf.upfronthosting.co.za>
2017-02-26 03:57:16rouiljsetrecipients: + rouilj, schlatterbeck, ber
2017-02-26 03:57:16rouiljlinkissue2550921 messages
2017-02-26 03:57:16rouiljcreate