2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Revert "Revert "Revert "SECURITY: Ensure oAuth authenticated email is the same as created user's email."""

This reverts commit e6d75f6844.

This is why we should not be pushing directly to master.
This commit is contained in:
Guo Xiang Tan 2017-03-01 10:16:26 +08:00
parent f918951d42
commit 76dd6933d2
3 changed files with 1 additions and 42 deletions

View file

@ -611,8 +611,6 @@ describe UsersController do
auth = session[:authentication] = {}
auth[:authenticator_name] = 'twitter'
auth[:extra_data] = twitter_auth
auth[:email_valid] = true
auth[:email] = @user.email
post_user