##// END OF EJS Templates
auth: use more consistent logging on failed logs....
marcink -
r2679:5fe2f43b default
parent child Browse files
Show More
@@ -127,14 +127,14 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP'
127
127
128 if userobj.username == User.DEFAULT_USER and userobj.active:
128 if userobj.username == User.DEFAULT_USER and userobj.active:
129 log.info(
129 log.info(
130 'user `%s` authenticated correctly as anonymous user', userobj)
130 'user `%s` authenticated correctly as anonymous user', userobj.username)
131 return user_attrs
131 return user_attrs
132
132
133 elif userobj.username == username and password_match:
133 elif userobj.username == username and password_match:
134 log.info('user `%s` authenticated correctly', userobj)
134 log.info('user `%s` authenticated correctly', userobj.username)
135 return user_attrs
135 return user_attrs
136 log.info("user %s had a bad password when "
136 log.warn("user `%s` used a wrong password when "
137 "authenticating on this plugin", userobj)
137 "authenticating on this plugin", userobj.username)
138 return None
138 return None
139 else:
139 else:
140 log.warning(
140 log.warning(
@@ -137,7 +137,7 b' class RhodeCodeAuthPlugin(RhodeCodeAuthP'
137 'user `%s` successfully authenticated via %s',
137 'user `%s` successfully authenticated via %s',
138 user_attrs['username'], self.name)
138 user_attrs['username'], self.name)
139 return user_attrs
139 return user_attrs
140 log.error(
140 log.warn(
141 'user `%s` failed to authenticate via %s, reason: bad or '
141 'user `%s` failed to authenticate via %s, reason: bad or '
142 'inactive token.', username, self.name)
142 'inactive token.', username, self.name)
143 else:
143 else:
General Comments 0
You need to be logged in to leave comments. Login now