mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-24 02:04:09 +03:00
Fixed so empty credentials are tested
This commit is contained in:
parent
51fb42db10
commit
7d02f3682d
@ -97,6 +97,9 @@ class Login(Handler):
|
||||
else:
|
||||
auth = Authenticator.objects.get(small_name=authSmallName)
|
||||
|
||||
if password == '':
|
||||
password = 'xdaf44tgas4xd5ñasdłe4g€@#½|«ð2' # Extrange password if credential leaved empty
|
||||
|
||||
logger.debug('Auth obj: {0}'.format(auth))
|
||||
user = authenticate(username, password, auth)
|
||||
if user is None: # invalid credentials
|
||||
|
Loading…
x
Reference in New Issue
Block a user