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 {
writeln!(f, "backup_code: disabled")?;
}
if labels.is_empty() {
writeln!(f, "webauthn: no authenticators")
} else {
writeln!(f, "webauthn:")?;
if !labels.is_empty() {
// We no longer show the deprecated security key case by default.
writeln!(f, " ⚠️ warning - security keys are deprecated.")?;
writeln!(f, " ⚠️ you should re-enroll these to passkeys.")?;
writeln!(f, "security keys:")?;
for label in labels {
writeln!(f, " * {}", label)?;
}
write!(f, "")
} else {
write!(f, "")
}
}
}