Skip to content

Commit 01ed6d1

Browse files
authored
Merge pull request #44 from akatsoulas/use-sha1
Replace sh224 with sha1 in username_algo.
2 parents 8326b68 + 30f2104 commit 01ed6d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mozilla_django_oidc/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def default_username_algo(email):
2828
# this protects against data leakage because usernames are often
2929
# treated as public identifiers (so we can't use the email address).
3030
return base64.urlsafe_b64encode(
31-
hashlib.sha224(smart_bytes(email)).digest()
31+
hashlib.sha1(smart_bytes(email)).digest()
3232
).rstrip(b'=')
3333

3434

0 commit comments

Comments
 (0)