Show More
@@ -401,7 +401,7 b' class TestLoginController(object):' | |||||
401 | ) # This should be overridden |
|
401 | ) # This should be overridden | |
402 |
|
402 | |||
403 | assert_session_flash( |
|
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 | ret = Session().query(User).filter( |
|
406 | ret = Session().query(User).filter( | |
407 | User.username == 'test_regular4').one() |
|
407 | User.username == 'test_regular4').one() |
@@ -312,8 +312,6 b' class LoginView(BaseAppView):' | |||||
312 | action_data = {'data': new_user.get_api_data(), |
|
312 | action_data = {'data': new_user.get_api_data(), | |
313 | 'user_agent': self.request.user_agent} |
|
313 | 'user_agent': self.request.user_agent} | |
314 |
|
314 | |||
315 |
|
||||
316 |
|
||||
317 | if external_identity: |
|
315 | if external_identity: | |
318 | action_data['external_identity'] = external_identity |
|
316 | action_data['external_identity'] = external_identity | |
319 |
|
317 | |||
@@ -329,7 +327,12 b' class LoginView(BaseAppView):' | |||||
329 | event = UserRegistered(user=new_user, session=self.session) |
|
327 | event = UserRegistered(user=new_user, session=self.session) | |
330 | trigger(event) |
|
328 | trigger(event) | |
331 | h.flash( |
|
329 | h.flash( | |
332 | _('You have successfully registered with RhodeCode'), |
|
330 | _('You have successfully registered with RhodeCode. You can log-in now.'), | |
|
331 | category='success') | |||
|
332 | if external_identity: | |||
|
333 | h.flash( | |||
|
334 | _('Please use the {identity} button to log-in').format( | |||
|
335 | identity=external_identity), | |||
333 | category='success') |
|
336 | category='success') | |
334 | Session().commit() |
|
337 | Session().commit() | |
335 |
|
338 |
General Comments 0
You need to be logged in to leave comments.
Login now