From d1980aeed8d97db44e46fd3099d969bd18e5e0bf Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 5 Nov 2018 11:24:03 -0600 Subject: [PATCH] Add client IP address to user feedback email --- tailbone/views/common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tailbone/views/common.py b/tailbone/views/common.py index f48bdbe4..22401a04 100644 --- a/tailbone/views/common.py +++ b/tailbone/views/common.py @@ -134,6 +134,7 @@ class CommonView(View): data = dict(form.validated) if data['user']: data['user_url'] = self.request.route_url('users.view', uuid=data['user'].uuid) + data['client_ip'] = self.request.client_addr send_email(self.rattail_config, 'user_feedback', data=data) return {'ok': True} return {'error': "Form did not validate!"}