mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
BUGFIX: identity_url was not fished out correctly
If I user logged in with Google and then changed email, they would no longer be able to log in with google
This commit is contained in:
@ -12,7 +12,8 @@ describe Auth::OpenIdAuthenticator do
|
||||
auth = Auth::OpenIdAuthenticator.new("test", "id", trusted: true)
|
||||
|
||||
user = Fabricate(:user)
|
||||
result = auth.after_authenticate(info: {email: user.email}, extra: {identity_url: 'abc'})
|
||||
response = OpenStruct.new(identity_url: 'abc')
|
||||
result = auth.after_authenticate(info: {email: user.email}, extra: {response: response})
|
||||
result.user.should == user
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user