Remove validation of pin length. Closes #6
This commit is contained in:
parent
5c4236511a
commit
d0bfd45edb
1 changed files with 1 additions and 6 deletions
|
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue