##// 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 error_dict=error_dict)
275 error_dict=error_dict)
276
276
277 new_user = UserModel().create_registration(form_result)
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 event = UserRegistered(user=new_user, session=self.session)
285 event = UserRegistered(user=new_user, session=self.session)
279 trigger(event)
286 trigger(event)
280 h.flash(
287 h.flash(
@@ -33,6 +33,7 b' ACTIONS_V1 = {'
33 'user.login.success': {'user_agent': ''},
33 'user.login.success': {'user_agent': ''},
34 'user.login.failure': {'user_agent': ''},
34 'user.login.failure': {'user_agent': ''},
35 'user.logout': {'user_agent': ''},
35 'user.logout': {'user_agent': ''},
36 'user.register': {},
36 'user.password.reset_request': {},
37 'user.password.reset_request': {},
37 'user.push': {'user_agent': '', 'commit_ids': []},
38 'user.push': {'user_agent': '', 'commit_ids': []},
38 'user.pull': {'user_agent': ''},
39 'user.pull': {'user_agent': ''},
General Comments 0
You need to be logged in to leave comments. Login now