##// END OF EJS Templates
registration: updated flash with more information after user registered.
marcink -
r4058:0e4c6b60 default
parent child Browse files
Show More
@@ -401,7 +401,7 b' class TestLoginController(object):'
401 401 ) # This should be overridden
402 402
403 403 assert_session_flash(
404 response, 'You have successfully registered with RhodeCode')
404 response, 'You have successfully registered with RhodeCode. You can log-in now.')
405 405
406 406 ret = Session().query(User).filter(
407 407 User.username == 'test_regular4').one()
@@ -312,8 +312,6 b' class LoginView(BaseAppView):'
312 312 action_data = {'data': new_user.get_api_data(),
313 313 'user_agent': self.request.user_agent}
314 314
315
316
317 315 if external_identity:
318 316 action_data['external_identity'] = external_identity
319 317
@@ -329,8 +327,13 b' class LoginView(BaseAppView):'
329 327 event = UserRegistered(user=new_user, session=self.session)
330 328 trigger(event)
331 329 h.flash(
332 _('You have successfully registered with RhodeCode'),
330 _('You have successfully registered with RhodeCode. You can log-in now.'),
333 331 category='success')
332 if external_identity:
333 h.flash(
334 _('Please use the {identity} button to log-in').format(
335 identity=external_identity),
336 category='success')
334 337 Session().commit()
335 338
336 339 redirect_ro = self.request.route_path('login')
General Comments 0
You need to be logged in to leave comments. Login now