forked from shaba/openuds
merged 3.5 temporal fix for login redirection
This commit is contained in:
parent
6cc1a8823d
commit
0ce1a565ab
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user