Revert "FIX: correctly remove authentication_data cookie on oauth login flow (#9238) (#9251)"

This reverts commit beaeb0c4b2ba0d273d7707d2fbc79feb63083a81.
This commit is contained in:
Jeff Wong
2020-03-20 14:37:55 -07:00
parent beaeb0c4b2
commit 4ecc0a25ae
4 changed files with 3 additions and 38 deletions

View File

@ -74,10 +74,7 @@ class Users::OmniauthCallbacksController < ApplicationController
@auth_result.authenticator_name = authenticator.name
complete_response_data
cookies['_bypass_cache'] = true
cookies[:authentication_data] = {
value: @auth_result.to_client_hash.to_json,
path: Discourse.base_uri
}
cookies[:authentication_data] = @auth_result.to_client_hash.to_json
redirect_to @origin
end
end