on registration display message
This commit is contained in:
parent
4688f4e4fd
commit
9093180d24
|
@ -585,9 +585,16 @@ class AlternateRootDirectory(OldRootDirectory):
|
|||
|
||||
if form.is_submitted() and not form.has_errors():
|
||||
try:
|
||||
return self.register_submit(form)
|
||||
t = self.register_submit(form)
|
||||
except RegistrationError:
|
||||
pass
|
||||
else:
|
||||
redirect_url = get_response().get_header('location')
|
||||
if redirect_url and urlparse.urlsplit(redirect_url)[2] == '/login':
|
||||
del get_response().headers['location']
|
||||
get_response().set_status(200)
|
||||
return self.register_done_password_sent()
|
||||
return t
|
||||
|
||||
template.html_top(_('Registration'))
|
||||
get_response().breadcrumb.append( ('register', _('Registration')) )
|
||||
|
|
Reference in New Issue