Fixed an issue where a warning is flashed every time for an email address when

authentication sources are internal and ldap. Fixes #6999
This commit is contained in:
Yogesh Mahajan
2022-02-16 13:34:24 +05:30
committed by Akshay Joshi
parent b1221d5517
commit b539637426
6 changed files with 15 additions and 10 deletions

View File

@@ -74,7 +74,7 @@ class WebserverAuthentication(BaseAuthentication):
return gettext("webserver")
def validate(self, form):
return True
return True, None
def get_user(self):
username = request.environ.get(config.WEBSERVER_REMOTE_USER)