Fix rofi-gopass to use correct user field

gopass, by default creates a field called `username` to contain the
corresponding login name. rofi-gopass was looking for a field called
`user`, and ignored username which lead to it only inputting the
password for any site where gopass created the login credentials.

This is now fixed, all that remains is to revert the manually changed
fields back to `username`.
This commit is contained in:
Marty Oehme 2019-11-18 12:18:56 +01:00
parent 15e63044db
commit cd762cde4a

View file

@ -108,7 +108,7 @@ autopass() {
local autotype
entry="${1}"
autotype="$(gopass show "${entry}" autotype)"
autotype="${autotype:-user :tab pass}"
autotype="${autotype:-username :tab pass}"
for word in ${autotype}; do
case "$word" in
@ -226,7 +226,7 @@ main() {
exit
;;
"11")
printf '%s' "$(gopass show "${entry}" user)" | _dotool type
printf '%s' "$(gopass show "${entry}" username)" | _dotool type
exit
;;
"12")