Skip to content
This repository was archived by the owner on Nov 7, 2023. It is now read-only.

Commit ffef12c

Browse files
author
Kevin King
committed
update DevopsOnboarding progress based on presence of ssh keypair
1 parent 202057a commit ffef12c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/src/main/java/co/krypt/kryptonite/MainActivity.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import co.krypt.krypton.onboarding.u2f.U2FOnboardingStage;
4545
import co.krypt.krypton.pairing.PairFragment;
4646
import co.krypt.krypton.policy.LocalAuthentication;
47+
import co.krypt.krypton.protocol.Profile;
4748
import co.krypt.krypton.settings.Settings;
4849
import co.krypt.krypton.settings.SettingsFragment;
4950
import co.krypt.krypton.silo.Notifications;
@@ -112,8 +113,11 @@ protected void onCreate(Bundle savedInstanceState) {
112113
if (silo.pairings().loadAll().size() > 0) {
113114
u2fProgress.setStage(U2FOnboardingStage.DONE);
114115
}
115-
if (silo.meStorage().load() != null) {
116+
Profile me = silo.meStorage().load();
117+
if (me != null && me.sshWirePublicKey != null) {
116118
devopsProgress.setStage(DevopsOnboardingStage.DONE);
119+
} else if (!devopsProgress.inProgress()){
120+
devopsProgress.reset();
117121
}
118122
if (u2fProgress.inProgress()
119123
|| (new Settings(getApplicationContext()).developerMode() && devopsProgress.inProgress())) {

0 commit comments

Comments
 (0)