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