##// END OF EJS Templates
audit-logs: added user.register audit log entry.
marcink -
r2384:ef27e94a default
parent child Browse files
Show More
@@ -275,6 +275,13 b' class LoginView(BaseAppView):'
275 275 error_dict=error_dict)
276 276
277 277 new_user = UserModel().create_registration(form_result)
278
279 action_data = {'data': new_user.get_api_data(),
280 'user_agent': self.request.user_agent}
281 audit_logger.store_web(
282 'user.register', action_data=action_data,
283 user=new_user)
284
278 285 event = UserRegistered(user=new_user, session=self.session)
279 286 trigger(event)
280 287 h.flash(
@@ -33,6 +33,7 b' ACTIONS_V1 = {'
33 33 'user.login.success': {'user_agent': ''},
34 34 'user.login.failure': {'user_agent': ''},
35 35 'user.logout': {'user_agent': ''},
36 'user.register': {},
36 37 'user.password.reset_request': {},
37 38 'user.push': {'user_agent': '', 'commit_ids': []},
38 39 'user.pull': {'user_agent': ''},
General Comments 0
You need to be logged in to leave comments. Login now