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