FIX: Respect the full_screen_login parameter from plugin auth providers (#7855)

FIX: Respect the full_screen_login parameter from plugin auth providers (#7855)

This behavior was regressed in 427979e7e51bb9bc858eb6ad2456ce0075fdc643

diff --git a/app/assets/javascripts/discourse/models/login-method.js.es6 b/app/assets/javascripts/discourse/models/login-method.js.es6
index 244e75b..083559a 100644
--- a/app/assets/javascripts/discourse/models/login-method.js.es6
+++ b/app/assets/javascripts/discourse/models/login-method.js.es6
@@ -29,7 +29,7 @@ const LoginMethod = Ember.Object.extend({
         authUrl += "?reconnect=true";
       }
 
-      if (fullScreenLogin) {
+      if (fullScreenLogin || this.full_screen_login) {
         document.cookie = "fsl=true";
         window.location = authUrl;
       } else {

GitHub sha: 5fdf228d

1 Like

@techAPJ please can you review, as you were the last one to work on this code?

2 Likes

Looks good to me. :+1:

2 Likes