diff options
Diffstat (limited to 'init_dir.go')
-rw-r--r-- | init_dir.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/init_dir.go b/init_dir.go index 9658bab..5ade692 100644 --- a/init_dir.go +++ b/init_dir.go @@ -87,7 +87,11 @@ func initDir(args *argContainer) { password = fido2.Secret(args.fido2, fido2CredentialID, fido2HmacSalt) } else { // normal password entry - password = readpassword.Twice([]string(args.extpass), []string(args.passfile)) + password, err = readpassword.Twice([]string(args.extpass), []string(args.passfile)) + if err != nil { + tlog.Fatal.Println(err) + os.Exit(exitcodes.ReadPassword) + } fido2CredentialID = nil fido2HmacSalt = nil } |