Browse Source

Merge pull request #4841 from nextcloud/disableOldLoginMethod

allow to switch off old login method
Tobias Kaminsky 5 years ago
parent
commit
77b6b178a9

+ 1 - 1
src/main/java/com/owncloud/android/authentication/AuthenticatorActivity.java

@@ -402,7 +402,7 @@ public class AuthenticatorActivity extends AccountAuthenticatorActivity
         setClient(progressBar);
 
         // show snackbar after 60s to switch back to old login method
-        if (showLegacyLogin) {
+        if (showLegacyLogin && getResources().getBoolean(R.bool.show_old_login)) {
             final String finalBaseURL = baseURL;
             new Handler().postDelayed(() -> DisplayUtils.createSnackbar(mLoginWebView,
                                                                         R.string.fallback_weblogin_text,

+ 1 - 0
src/main/res/values/setup.xml

@@ -111,6 +111,7 @@
     <!-- url for webview login, with the protocol prefix and with full url (normally /index.php/login/flow)
     If set, will replace all other login methods available -->
     <string name="webview_login_url" translatable="false"></string>
+    <bool name="show_old_login">true</bool>
 
     <!-- Files becomes Home -->
     <bool name="use_home">false</bool>