Prevent multiple autotype permission dialogs

This commit is contained in:
Bernd Schoolmann 2023-12-06 02:40:03 +01:00
parent 905a09cce7
commit 04d2357f3c
No known key found for this signature in database

View File

@ -77,9 +77,7 @@ func Run(layout string, useCopyPaste bool, client client.Client) {
clipboard.WriteAll(login.Password)
autotype.Paste(layout)
} else {
autotype.TypeString(string(login.Username), layout)
autotype.TypeString("\t", layout)
autotype.TypeString(string(login.Password), layout)
autotype.TypeString(string(login.Username)+"\t"+string(login.Password), layout)
}
clipboard.WriteAll(login.TwoFactorCode)