1
0
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:
Adolfo Gómez García 2015-11-16 12:36:52 +01:00
parent 51fb42db10
commit 7d02f3682d

View File

@ -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