0002-Limit-username-to-30-characters-for-now-7085.patch
mellon/adapters.py | ||
---|---|---|
34 | 34 |
username_template = utils.get_setting(idp, 'USERNAME_TEMPLATE') |
35 | 35 |
try: |
36 | 36 |
username = unicode(username_template).format( |
37 |
realm=realm, attributes=saml_attributes, idp=idp) |
|
37 |
realm=realm, attributes=saml_attributes, idp=idp)[:30]
|
|
38 | 38 |
except ValueError: |
39 | 39 |
log.error('invalid username template %r'. username_template) |
40 | 40 |
except (AttributeError, KeyError, IndexError), e: |
41 |
- |