Browse Source

Report an error to the user in log in view when the access to the user name in the server fails

David A. Velasco 11 năm trước cách đây
mục cha
commit
5db7b8e6f6

+ 1 - 1
owncloud-android-library

@@ -1 +1 @@
-Subproject commit 1c44c7ac2232478e9a1233d2013207987e2248d8
+Subproject commit 5b4f63ebdb365c6e7e9a3e0148aa18a8d5fb5067

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

@@ -36,6 +36,7 @@ import android.support.v4.app.Fragment;
 import android.text.Editable;
 import android.text.InputType;
 import android.text.TextWatcher;
+import android.util.Log;
 import android.view.KeyEvent;
 import android.view.MotionEvent;
 import android.view.View;
@@ -822,6 +823,10 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
             
             if (success)
                 finish();
+        } else {
+            updateAuthStatusIconAndText(result);
+            showAuthStatus();
+            Log_OC.e(TAG, "Access to user name failed: " + result.getLogMessage());
         }
         
     }
@@ -1591,7 +1596,7 @@ implements  OnRemoteOperationListener, OnSslValidatorListener, OnFocusChangeList
     }
 
 
-    public void onSamlDialogSuccess(String sessionCookie){
+    public void onSamlDialogSuccess(String sessionCookie) {
         mAuthToken = sessionCookie;
         
         if (sessionCookie != null && sessionCookie.length() > 0) {