aboutsummaryrefslogtreecommitdiff
path: root/gn3/auth/authentication/oauth2/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2023-05-10 13:16:42 +0300
committerFrederick Muriuki Muriithi2023-05-10 13:16:42 +0300
commit1d6a4ad6b41c01a06d8ee8984c41e07a36484590 (patch)
tree21131658902ccf36aed1cb6fc4a2fe07723141a5 /gn3/auth/authentication/oauth2/views.py
parent5526f0316c2714d30e47a90f81e0ff686a29042f (diff)
downloadgenenetwork3-1d6a4ad6b41c01a06d8ee8984c41e07a36484590.tar.gz
auth: Only check deliverability of emails at registration.
Check only that the email format is correct, but don't bother with the deliverability check during authentication. The deliverability check is done at registration.
Diffstat (limited to 'gn3/auth/authentication/oauth2/views.py')
-rw-r--r--gn3/auth/authentication/oauth2/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/auth/authentication/oauth2/views.py b/gn3/auth/authentication/oauth2/views.py
index 48a97da..e096002 100644
--- a/gn3/auth/authentication/oauth2/views.py
+++ b/gn3/auth/authentication/oauth2/views.py
@@ -57,7 +57,8 @@ def authorise():
redirect_response = redirect(url_for("oauth2.auth.authorise",
client_id=client_id))
try:
- email = validate_email(form.get("user:email"))
+ email = validate_email(
+ form.get("user:email"), check_deliverability=False)
user = user_by_email(conn, email["email"])
if valid_login(conn, user, form.get("user:password", "")):
return server.create_authorization_response(request=request, grant_user=user)