mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Improve specs and handle invalid email token
Follow-up to 7977b09025
This commit is contained in:
@@ -59,7 +59,7 @@ InviteRedeemer = Struct.new(:invite, :username, :name, :password, :user_custom_f
|
||||
user.save!
|
||||
|
||||
if invite.via_email
|
||||
user.email_tokens.create(email: user.email)
|
||||
user.email_tokens.create!(email: user.email)
|
||||
user.activate
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user