locked empty security tokens are locked, not empty

This commit is contained in:
Vincent Breitmoser
2017-09-28 17:00:00 +02:00
parent 3d473e05ad
commit 77856afc4f

View File

@@ -165,8 +165,14 @@ class ManageSecurityTokenPresenter implements ManageSecurityTokenMvpPresenter {
private void performKeyCheck() {
boolean keyIsEmpty = tokenInfo.isEmpty();
if (keyIsEmpty) {
view.statusLineOk();
boolean tokenIsAdminLocked = tokenInfo.getVerifyAdminRetries() == 0;
if (tokenIsAdminLocked) {
view.statusLineError();
view.showActionLocked(0);
return;
}
view.statusLineOk();
view.showActionEmptyToken();
return;
}