Enforce correct PIN lengths during YubiKey setup

The behaviour of `age-plugin-yubikey` during setup now matches its
behaviour during plugin usage.
This commit is contained in:
Jack Grigg
2023-01-29 15:07:25 +00:00
parent fc2081c216
commit b1710e8d69
4 changed files with 72 additions and 45 deletions
+2 -2
View File
@@ -127,7 +127,8 @@ mgr-change-default-pin =
✨ Your {-yubikey} is using the default PIN. Let's change it!
✨ We'll also set the PUK equal to the PIN.
🔐 The PIN is up to 8 numbers, letters, or symbols. Not just numbers!
🔐 The PIN can be numbers, letters, or symbols. Not just numbers!
📏 The PIN must be at least 6 and at most 8 characters in length.
❌ Your keys will be lost if the PIN and PUK are locked after 3 incorrect tries.
mgr-enter-current-puk = Enter current PUK (default is {$default_puk})
@@ -180,7 +181,6 @@ rec-custom-mgmt-key =
err-invalid-flag-command = Flag '{$flag}' cannot be used with '{$command}'.
err-invalid-flag-tui = Flag '{$flag}' cannot be used with the interactive interface.
err-invalid-pin-length = The PIN needs to be 1-8 characters.
err-invalid-pin-policy = Invalid PIN policy '{$policy}' (expected [{$expected}]).
err-invalid-slot = Invalid slot '{$slot}' (expected number between 1 and 20).
err-invalid-touch-policy = Invalid touch policy '{$policy}' (expected [{$expected}]).