diff --git a/pkg/commands/oscommands/cmd_obj_runner.go b/pkg/commands/oscommands/cmd_obj_runner.go index 01cc0f460..498ef4bab 100644 --- a/pkg/commands/oscommands/cmd_obj_runner.go +++ b/pkg/commands/oscommands/cmd_obj_runner.go @@ -25,6 +25,7 @@ const ( Password CredentialType = iota Username Passphrase + PIN ) type cmdObjRunner struct { @@ -335,6 +336,7 @@ func (self *cmdObjRunner) getCheckForCredentialRequestFunc() func([]byte) (Crede `Password\s*for\s*'.+':`: Password, `Username\s*for\s*'.+':`: Username, `Enter\s*passphrase\s*for\s*key\s*'.+':`: Passphrase, + `Enter\s*PIN\s*for\s*.+\s*key\s*.+:`: PIN, } for pattern, askFor := range prompts { diff --git a/pkg/gui/controllers/helpers/credentials_helper.go b/pkg/gui/controllers/helpers/credentials_helper.go index 9da3a46a2..10679d7a4 100644 --- a/pkg/gui/controllers/helpers/credentials_helper.go +++ b/pkg/gui/controllers/helpers/credentials_helper.go @@ -61,6 +61,8 @@ func (self *CredentialsHelper) getTitleAndMask(passOrUname oscommands.Credential return self.c.Tr.CredentialsPassword, true case oscommands.Passphrase: return self.c.Tr.CredentialsPassphrase, true + case oscommands.PIN: + return self.c.Tr.CredentialsPIN, true } // should never land here diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index e152b62a4..c20022174 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -29,6 +29,7 @@ type TranslationSet struct { CredentialsUsername string CredentialsPassword string CredentialsPassphrase string + CredentialsPIN string PassUnameWrong string CommitChanges string AmendLastCommit string @@ -676,6 +677,7 @@ func EnglishTranslationSet() TranslationSet { CredentialsUsername: "Username", CredentialsPassword: "Password", CredentialsPassphrase: "Enter passphrase for SSH key", + CredentialsPIN: "Enter PIN for SSH key", PassUnameWrong: "Password, passphrase and/or username wrong", CommitChanges: "commit changes", AmendLastCommit: "amend last commit",