mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
FIX: fullscreen login set from client needs to be respected
This commit is contained in:
@ -57,7 +57,8 @@ class Users::OmniauthCallbacksController < ApplicationController
|
||||
@auth_result.authenticator_name = authenticator.name
|
||||
complete_response_data
|
||||
|
||||
if provider && provider.full_screen_login
|
||||
if provider && (provider.full_screen_login || cookies['fsl'])
|
||||
cookies.delete('fsl')
|
||||
cookies['_bypass_cache'] = true
|
||||
flash[:authentication_data] = @auth_result.to_client_hash.to_json
|
||||
redirect_to @origin
|
||||
|
Reference in New Issue
Block a user