wpass: correctly autofill when no username is present
This commit is contained in:
parent
1eca28f39c
commit
53996693ad
1 changed files with 4 additions and 2 deletions
|
@ -50,8 +50,10 @@ main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
autotype(){
|
autotype(){
|
||||||
env wtype -s 100 "$username"
|
if test -n "$username"; then
|
||||||
env wtype -s 100 -k tab
|
env wtype -s 100 "$username"
|
||||||
|
env wtype -s 100 -k tab
|
||||||
|
fi
|
||||||
env wtype -s 100 "$password"
|
env wtype -s 100 "$password"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue