mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: proper error message when account created is hit with no session
This commit is contained in:
parent
4167757dee
commit
77cc087b13
2 changed files with 2 additions and 2 deletions
|
@ -436,7 +436,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def account_created
|
def account_created
|
||||||
@message = session['user_created_message']
|
@message = session['user_created_message'] || I18n.t('activation.missing_session')
|
||||||
expires_now
|
expires_now
|
||||||
render layout: 'no_ember'
|
render layout: 'no_ember'
|
||||||
end
|
end
|
||||||
|
|
|
@ -475,7 +475,7 @@ en:
|
||||||
continue_button: "Continue to %{site_name}"
|
continue_button: "Continue to %{site_name}"
|
||||||
welcome_to: "Welcome to %{site_name}!"
|
welcome_to: "Welcome to %{site_name}!"
|
||||||
approval_required: "A moderator must manually approve your new account before you can access this forum. You'll get an email when your account is approved!"
|
approval_required: "A moderator must manually approve your new account before you can access this forum. You'll get an email when your account is approved!"
|
||||||
|
missing_session: "We can not detect if your account was created, please ensure you have cookies enabled."
|
||||||
post_action_types:
|
post_action_types:
|
||||||
off_topic:
|
off_topic:
|
||||||
title: 'Off-Topic'
|
title: 'Off-Topic'
|
||||||
|
|
Loading…
Reference in a new issue