mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
else @user makes no sense :)
This commit is contained in:
parent
ef24fd54ba
commit
1a745ca16a
@ -581,7 +581,7 @@ class UsersController < ApplicationController
|
||||
|
||||
if @user.active
|
||||
render_json_error(I18n.t('activation.activated'), status: 409)
|
||||
else @user
|
||||
else
|
||||
@email_token = @user.email_tokens.unconfirmed.active.first
|
||||
enqueue_activation_email
|
||||
render nothing: true
|
||||
|
Loading…
Reference in New Issue
Block a user