From 1d6a4ad6b41c01a06d8ee8984c41e07a36484590 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 10 May 2023 13:16:42 +0300 Subject: 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. --- gn3/auth/authentication/oauth2/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gn3') 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) -- cgit v1.2.3