Révision a9a12993
Ajouté par Josué Kouka il y a plus de 8 ans
mandayejs/mandaye/utils.py | ||
---|---|---|
51 | 51 |
url = url._replace(netloc=settings.SITE_DOMAIN) |
52 | 52 |
return url.path |
53 | 53 |
|
54 |
def get_password_field(): |
|
55 |
"""Return name of the password field |
|
56 |
""" |
|
57 |
try: |
|
58 |
field_name = [ field.get('name') for field in settings.SITE_LOCATORS if field.get('kind') == 'password' ] |
|
59 |
return field_name[0] |
|
60 |
except (IndexError,): |
|
61 |
return None |
|
54 | 62 |
|
Formats disponibles : Unified diff
encrypt user credentials (#9534)