##// END OF EJS Templates
auth: tweak log statements when redirecting unauthenticated users to login...
Mads Kiilerich -
r8695:98cbebff stable
parent child Browse files
Show More
@@ -521,9 +521,9 b' class LoginRequired(object):'
521 if self.allow_default_user:
521 if self.allow_default_user:
522 log.info('default user @ %s', loc)
522 log.info('default user @ %s', loc)
523 return func(*fargs, **fkwargs)
523 return func(*fargs, **fkwargs)
524 log.info('default user is not accepted here @ %s', loc)
524 log.info('default user is redirected to login @ %s', loc)
525 elif user.is_anonymous: # default user is disabled and no proper authentication
525 elif user.is_anonymous: # default user is disabled and no proper authentication
526 log.warning('user is anonymous and NOT authenticated with regular auth @ %s', loc)
526 log.info('anonymous user is redirected to login @ %s', loc)
527 else: # regular authentication
527 else: # regular authentication
528 log.info('user %s authenticated with regular auth @ %s', user, loc)
528 log.info('user %s authenticated with regular auth @ %s', user, loc)
529 return func(*fargs, **fkwargs)
529 return func(*fargs, **fkwargs)
General Comments 0
You need to be logged in to leave comments. Login now