Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored Mar 19, 2021
1 parent 741d095 commit af8fe6e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/models/concerns/omniauthable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ def create_for_oauth(auth)
def user_params_from_auth(email, auth)
{
email: email || "#{TEMP_EMAIL_PREFIX}-#{auth.uid}-#{auth.provider}.com",
password: Devise.friendly_token[0, 20],
agreement: true,
external: true,
account_attributes: {
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def needs_feed_update?
end

def validate_email_dns?
email_changed? && !(Rails.env.test? || Rails.env.development?)
email_changed? && !external? && !(Rails.env.test? || Rails.env.development?)
end

def invite_text_required?
Expand Down

0 comments on commit af8fe6e

Please sign in to comment.