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():
abort(500)
app.logger.info(
'NGINX_AUTH %s %s %s',
username, service, auth_status)
'NGINX_AUTH %s %s %s shard=%s',
username, service, auth_status, shard)
response = make_response('')
if auth_status == 'OK':
......
......@@ -121,7 +121,7 @@ class User(model.User):
self._totp_secret = values[0]
elif key == SCHEMA['app_specific_password']:
self._asps = [v.split(':', 1) for v in values]
elif SCHEMA['shard'] and key == SCHEMA['shard']:
elif key == SCHEMA['shard']:
self._shard = values[0]
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