Ensure that internal users are able to login when auth sources are [ldap, internal]. #6151

This commit is contained in:
Yogesh Mahajan
2023-04-24 11:54:02 +05:30
committed by GitHub
parent 62baa0dccb
commit 39a0f46159
2 changed files with 9 additions and 4 deletions

View File

@@ -289,6 +289,10 @@ class AuthSourceManager:
if msg is not None and 'username' in msg:
self.form._fields['email'].data = msg['username']
return status, msg
else:
current_app.logger.debug(
"Authentication initiated via source: %s is failed." %
source.get_source_name())
return status, msg