From efb306515844619bdd3ca6cc152d12797a60b4fe Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Sat, 15 Feb 2020 17:08:09 +0100 Subject: [PATCH] social_auth: Take user to find_account if invalid subdomain is given. This allows to also clean up some code that's not really useful. --- templates/zerver/login.html | 6 ------ zerver/tests/test_auth_backends.py | 2 +- zerver/tests/test_signup.py | 6 +----- zerver/views/auth.py | 10 ++-------- zproject/backends.py | 7 +++++-- 5 files changed, 9 insertions(+), 22 deletions(-) diff --git a/templates/zerver/login.html b/templates/zerver/login.html index 5e4085b398..b7d058e608 100644 --- a/templates/zerver/login.html +++ b/templates/zerver/login.html @@ -96,12 +96,6 @@ page can be easily identified in it's respective JavaScript file. --> {% endif %} - {% if subdomain %} -
- {{ wrong_subdomain_error }} -
- {% endif %} -