merged 3.5 temporal fix for login redirection

This commit is contained in:
Adolfo Gómez García 2022-02-21 14:34:58 +01:00
parent 6cc1a8823d
commit 0ce1a565ab
2 changed files with 1 additions and 6 deletions

View File

@ -291,9 +291,6 @@ def authenticate(
return AuthResult(url=res.url)
return AuthResult()
if isinstance(res, str):
return res # type: ignore # note: temporal fix on 3.5 for possible redirect on failed login
logger.debug('Groups manager: %s', gm)
# If do not have any valid group

View File

@ -127,9 +127,7 @@ def checkLogin( # pylint: disable=too-many-branches, too-many-statements
)
return LoginResult(errstr=_('Access tried from an unallowed source'))
password = form.cleaned_data['password']
if password == '':
password = 'axd56adhg466jasd6q8sadñ€sáé--v' # Random string, in fact, just a placeholder that will not be used :)
password = form.cleaned_data['password'] or 'axd56adhg466jasd6q8sadñ€sáé--v' # Random string, in fact, just a placeholder that will not be used :)
authResult = authenticate(userName, password, authenticator, request=request)
logger.debug('User: %s', authResult.user)