locked empty security tokens are locked, not empty
This commit is contained in:
@@ -165,8 +165,14 @@ class ManageSecurityTokenPresenter implements ManageSecurityTokenMvpPresenter {
|
|||||||
private void performKeyCheck() {
|
private void performKeyCheck() {
|
||||||
boolean keyIsEmpty = tokenInfo.isEmpty();
|
boolean keyIsEmpty = tokenInfo.isEmpty();
|
||||||
if (keyIsEmpty) {
|
if (keyIsEmpty) {
|
||||||
view.statusLineOk();
|
boolean tokenIsAdminLocked = tokenInfo.getVerifyAdminRetries() == 0;
|
||||||
|
if (tokenIsAdminLocked) {
|
||||||
|
view.statusLineError();
|
||||||
|
view.showActionLocked(0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
view.statusLineOk();
|
||||||
view.showActionEmptyToken();
|
view.showActionEmptyToken();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user