FIX: Switch to full screen external login for Safari

FIX: Switch to full screen external login for Safari

This is a temporary solution, currently popup auth fails in Safari.

diff --git a/app/assets/javascripts/discourse/controllers/login.js.es6 b/app/assets/javascripts/discourse/controllers/login.js.es6
index 19da455..13c77de 100644
--- a/app/assets/javascripts/discourse/controllers/login.js.es6
+++ b/app/assets/javascripts/discourse/controllers/login.js.es6
@@ -217,7 +217,10 @@ export default Ember.Controller.extend(ModalFunctionality, {
       // On Mobile, Android or iOS always go with full screen
       if (
         this.isMobileDevice ||
-        (capabilities && (capabilities.isIOS || capabilities.isAndroid))
+        (capabilities &&
+          (capabilities.isIOS ||
+            capabilities.isAndroid ||
+            capabilities.isSafari))
       ) {
         fullScreenLogin = true;
       }

GitHub sha: 7252c14a

1 Like