Skip to content
Snippets Groups Projects
Commit db4943c2 authored by ale's avatar ale
Browse files

log nginx http_auth shard

parent 70c071c9
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,8 @@ def do_nginx_http_auth(): ...@@ -26,8 +26,8 @@ def do_nginx_http_auth():
abort(500) abort(500)
app.logger.info( app.logger.info(
'NGINX_AUTH %s %s %s', 'NGINX_AUTH %s %s %s shard=%s',
username, service, auth_status) username, service, auth_status, shard)
response = make_response('') response = make_response('')
if auth_status == 'OK': if auth_status == 'OK':
......
...@@ -121,7 +121,7 @@ class User(model.User): ...@@ -121,7 +121,7 @@ class User(model.User):
self._totp_secret = values[0] self._totp_secret = values[0]
elif key == SCHEMA['app_specific_password']: elif key == SCHEMA['app_specific_password']:
self._asps = [v.split(':', 1) for v in values] self._asps = [v.split(':', 1) for v in values]
elif SCHEMA['shard'] and key == SCHEMA['shard']: elif key == SCHEMA['shard']:
self._shard = values[0] self._shard = values[0]
def otp_enabled(self): def otp_enabled(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment