Show More
@@ -437,8 +437,7 b' def ValidAuth():' | |||||
437 | password = value['password'] |
|
437 | password = value['password'] | |
438 | username = value['username'] |
|
438 | username = value['username'] | |
439 |
|
439 | |||
440 | if not authenticate(username, password, '', |
|
440 | if not authenticate(username, password, '', HTTP_TYPE, | |
441 | HTTP_TYPE, |
|
|||
442 | skip_missing=True): |
|
441 | skip_missing=True): | |
443 | user = User.get_by_username(username) |
|
442 | user = User.get_by_username(username) | |
444 | if user and not user.active: |
|
443 | if user and not user.active: | |
@@ -448,7 +447,7 b' def ValidAuth():' | |||||
448 | msg, value, state, error_dict={'username': msg} |
|
447 | msg, value, state, error_dict={'username': msg} | |
449 | ) |
|
448 | ) | |
450 | else: |
|
449 | else: | |
451 | log.warning('user %s failed to authenticate', username) |
|
450 | log.warning('user `%s` failed to authenticate', username) | |
452 | msg = M(self, 'invalid_username', state) |
|
451 | msg = M(self, 'invalid_username', state) | |
453 | msg2 = M(self, 'invalid_password', state) |
|
452 | msg2 = M(self, 'invalid_password', state) | |
454 | raise formencode.Invalid( |
|
453 | raise formencode.Invalid( |
General Comments 0
You need to be logged in to leave comments.
Login now