Revert "Merge pull request from GHSA-7cmh-wm9h-j63f"

This reverts commit 8e5a8d1d54. The change will be re-applied with improvements.
This commit is contained in:
David Taylor
2019-08-28 12:46:36 +01:00
parent ca9ef58318
commit 9878bc62b3
2 changed files with 2 additions and 21 deletions

View File

@@ -134,10 +134,7 @@ class Users::OmniauthCallbacksController < ApplicationController
user.email_tokens.create!(email: user.email)
end
if !user.active || !user.email_confirmed?
user.password = SecureRandom.hex
user.activate
end
user.activate
user.update!(registration_ip_address: request.remote_ip) if user.registration_ip_address.blank?
end