about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-01 13:42:51 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-01 13:42:51 -0500
commitd4533ca1fa1e76427b81e3b3a7ba9bf9384486c9 (patch)
tree017fdcaf50f743854f462092588ecf9c10556966 /app
parentf52a54685a4482f4f16e411847b9bfe71690cf69 (diff)
[Bug] Skip spam registration check on email address change if already approved
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index b996c9dbe..1b5e2eea4 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -298,7 +298,7 @@ class User < ApplicationRecord
   end
 
   def send_confirmation_instructions
-    unless user_might_not_be_a_spam_bot
+    unless approved? || user_might_not_be_a_spam_bot
       invite_request&.destroy
       account&.destroy
       destroy