Show More
@@ -31,6 +31,7 b' from pyramid.view import view_config' | |||||
31 | from recaptcha.client.captcha import submit |
|
31 | from recaptcha.client.captcha import submit | |
32 |
|
32 | |||
33 | from rhodecode.authentication.base import loadplugin |
|
33 | from rhodecode.authentication.base import loadplugin | |
|
34 | from rhodecode.events import UserRegistered | |||
34 | from rhodecode.lib.auth import ( |
|
35 | from rhodecode.lib.auth import ( | |
35 | AuthUser, HasPermissionAnyDecorator, CSRFRequired) |
|
36 | AuthUser, HasPermissionAnyDecorator, CSRFRequired) | |
36 | from rhodecode.lib.base import get_ip_addr |
|
37 | from rhodecode.lib.base import get_ip_addr | |
@@ -243,7 +244,9 b' class LoginView(object):' | |||||
243 | raise formencode.Invalid(_msg, _value, None, |
|
244 | raise formencode.Invalid(_msg, _value, None, | |
244 | error_dict=error_dict) |
|
245 | error_dict=error_dict) | |
245 |
|
246 | |||
246 | UserModel().create_registration(form_result) |
|
247 | new_user = UserModel().create_registration(form_result) | |
|
248 | event = UserRegistered(user=new_user, session=self.session) | |||
|
249 | self.request.registry.notify(event) | |||
247 | self.session.flash( |
|
250 | self.session.flash( | |
248 | _('You have successfully registered with RhodeCode'), |
|
251 | _('You have successfully registered with RhodeCode'), | |
249 | queue='success') |
|
252 | queue='success') |
General Comments 0
You need to be logged in to leave comments.
Login now