Skip to content

Commit 30f2104

Browse files
committed
Replace sh224 with sha1 in username_algo.
1 parent 2b0c953 commit 30f2104

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)