##// END OF EJS Templates
audit: properly store IP address for user registration
marcink -
r2732:6debc24c default
parent child Browse files
Show More
@@ -299,9 +299,15 b' class LoginView(BaseAppView):'
299 299
300 300 action_data = {'data': new_user.get_api_data(),
301 301 'user_agent': self.request.user_agent}
302
303 audit_user = audit_logger.UserWrap(
304 username=new_user.username,
305 user_id=new_user.user_id,
306 ip_addr=self.request.remote_addr)
307
302 308 audit_logger.store_web(
303 309 'user.register', action_data=action_data,
304 user=new_user)
310 user=audit_user)
305 311
306 312 event = UserRegistered(user=new_user, session=self.session)
307 313 trigger(event)
General Comments 0
You need to be logged in to leave comments. Login now