mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
else @user makes no sense :)
This commit is contained in:
parent
ef24fd54ba
commit
1a745ca16a
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ class UsersController < ApplicationController
|
||||||
|
|
||||||
if @user.active
|
if @user.active
|
||||||
render_json_error(I18n.t('activation.activated'), status: 409)
|
render_json_error(I18n.t('activation.activated'), status: 409)
|
||||||
else @user
|
else
|
||||||
@email_token = @user.email_tokens.unconfirmed.active.first
|
@email_token = @user.email_tokens.unconfirmed.active.first
|
||||||
enqueue_activation_email
|
enqueue_activation_email
|
||||||
render nothing: true
|
render nothing: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue