afficher remote client IP

This commit is contained in:
2021-03-17 16:49:04 +01:00
parent 48fe805295
commit 71e2a1b55a
2 changed files with 5 additions and 5 deletions

View File

@@ -216,7 +216,7 @@ def login(request):
# get user agent string from request
ua_string = request.user_agent
user_agent = parse(ua_string)
update_last_connection(request, login, str(user_agent))
update_last_connection(request, login, request.client_addr + ' - ' + str(user_agent))
# force le commit car il ne se fait pas automatiquement après l'update
transaction.commit()