mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Revert "add user email on account created page"
This reverts commit 164fc1108a
.
This commit is contained in:
parent
7a0b1c1dff
commit
be93f224a6
5 changed files with 4 additions and 10 deletions
|
@ -362,10 +362,9 @@ export default DiscourseController.extend(ModalFunctionality, {
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
// Trigger the browser's password manager using the hidden static login form:
|
// Trigger the browser's password manager using the hidden static login form:
|
||||||
var $hidden_login_form = $('#hidden-login-form');
|
var $hidden_login_form = $('#hidden-login-form');
|
||||||
var account_created_url = Discourse.getURL('/users/' + self.get('accountUsername') + '/account-created');
|
|
||||||
$hidden_login_form.find('input[name=username]').val(attrs.accountName);
|
$hidden_login_form.find('input[name=username]').val(attrs.accountName);
|
||||||
$hidden_login_form.find('input[name=password]').val(attrs.accountPassword);
|
$hidden_login_form.find('input[name=password]').val(attrs.accountPassword);
|
||||||
$hidden_login_form.find('input[name=redirect]').val(account_created_url);
|
$hidden_login_form.find('input[name=redirect]').val(Discourse.getURL('/users/account-created'));
|
||||||
$hidden_login_form.submit();
|
$hidden_login_form.submit();
|
||||||
} else {
|
} else {
|
||||||
self.flash(result.message || I18n.t('create_account.failed'), 'error');
|
self.flash(result.message || I18n.t('create_account.failed'), 'error');
|
||||||
|
|
|
@ -338,11 +338,6 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def account_created
|
def account_created
|
||||||
params.require(:username)
|
|
||||||
@user = User.find_by_username_or_email(params[:username].to_s)
|
|
||||||
|
|
||||||
raise Discourse::NotFound unless @user
|
|
||||||
|
|
||||||
expires_now
|
expires_now
|
||||||
render layout: 'no_js'
|
render layout: 'no_js'
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<div id='simple-container'>
|
<div id='simple-container'>
|
||||||
<span style="font-size: 16px; line-height: 24px;"><%= t('login.activate_email', email: @user.email).html_safe %></span>
|
<span style="font-size: 16px; line-height: 24px;"><%= t 'login.activate_email' %></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1087,7 +1087,7 @@ en:
|
||||||
incorrect_username_email_or_password: "Incorrect username, email or password"
|
incorrect_username_email_or_password: "Incorrect username, email or password"
|
||||||
wait_approval: "Thanks for signing up. We will notify you when your account has been approved."
|
wait_approval: "Thanks for signing up. We will notify you when your account has been approved."
|
||||||
active: "Your account is activated and ready to use."
|
active: "Your account is activated and ready to use."
|
||||||
activate_email: "<p>You're almost done! We sent an activation mail to <b>%{email}</b>. Please follow the instructions in the email to activate your account.</p><p>If it doesn't arrive, check your spam folder, or try to log in again to send another activation mail.</p>"
|
activate_email: "You're almost done! We sent an activation mail to the email address you provided. Please follow the instructions in the email to activate your account."
|
||||||
not_activated: "You can't log in yet. We sent an activation email to you. Please follow the instructions in the email to activate your account."
|
not_activated: "You can't log in yet. We sent an activation email to you. Please follow the instructions in the email to activate your account."
|
||||||
not_allowed_from_ip_address: "You can't login as %{username} from that IP address."
|
not_allowed_from_ip_address: "You can't login as %{username} from that IP address."
|
||||||
suspended: "You can't log in until %{date}."
|
suspended: "You can't log in until %{date}."
|
||||||
|
|
|
@ -207,7 +207,7 @@ Discourse::Application.routes.draw do
|
||||||
|
|
||||||
post "users/read-faq" => "users#read_faq"
|
post "users/read-faq" => "users#read_faq"
|
||||||
get "users/search/users" => "users#search_users"
|
get "users/search/users" => "users#search_users"
|
||||||
get "users/:username/account-created" => "users#account_created", constraints: {username: USERNAME_ROUTE_FORMAT}
|
get "users/account-created/" => "users#account_created"
|
||||||
get "users/password-reset/:token" => "users#password_reset"
|
get "users/password-reset/:token" => "users#password_reset"
|
||||||
put "users/password-reset/:token" => "users#password_reset"
|
put "users/password-reset/:token" => "users#password_reset"
|
||||||
get "users/activate-account/:token" => "users#activate_account"
|
get "users/activate-account/:token" => "users#activate_account"
|
||||||
|
|
Loading…
Reference in a new issue