Reword security keys (#1196)

This commit is contained in:
Firstyear 2022-11-14 19:47:14 +10:00 committed by GitHub
parent 880f090c25
commit 33b8fe0967
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -655,14 +655,17 @@ impl fmt::Display for CredentialDetail {
} else { } else {
writeln!(f, "backup_code: disabled")?; writeln!(f, "backup_code: disabled")?;
} }
if labels.is_empty() { if !labels.is_empty() {
writeln!(f, "webauthn: no authenticators") // We no longer show the deprecated security key case by default.
} else { writeln!(f, " ⚠️ warning - security keys are deprecated.")?;
writeln!(f, "webauthn:")?; writeln!(f, " ⚠️ you should re-enroll these to passkeys.")?;
writeln!(f, "security keys:")?;
for label in labels { for label in labels {
writeln!(f, " * {}", label)?; writeln!(f, " * {}", label)?;
} }
write!(f, "") write!(f, "")
} else {
write!(f, "")
} }
} }
} }