Remove validation of pin length. Closes #6

This commit is contained in:
ikarulus 2019-01-25 21:29:27 +01:00
parent 5c4236511a
commit d0bfd45edb

View file

@ -96,7 +96,7 @@ public class LoginActivity extends AppCompatActivity implements AsyncTaskCallbac
View focusView = null; View focusView = null;
// Check for a valid pin, if the user entered one. // Check for a valid pin, if the user entered one.
if (!TextUtils.isEmpty(pin) && !isPinValid(pin)) { if (!TextUtils.isEmpty(pin)) {
mPinView.setError(getString(R.string.error_invalid_pin)); mPinView.setError(getString(R.string.error_invalid_pin));
focusView = mPinView; focusView = mPinView;
cancel = true; cancel = true;
@ -123,11 +123,6 @@ public class LoginActivity extends AppCompatActivity implements AsyncTaskCallbac
} }
} }
private boolean isPinValid(String pin) {
//TODO: Replace this with your own logic
return pin.length() == 6;
}
/** /**
* Shows the progress UI and hides the login form. * Shows the progress UI and hides the login form.
*/ */