aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrofi-pass8
1 files changed, 7 insertions, 1 deletions
diff --git a/rofi-pass b/rofi-pass
index 36e8ba3..96e043b 100755
--- a/rofi-pass
+++ b/rofi-pass
@@ -348,17 +348,23 @@ mainMenu () {
stuff["pass"]=${password}
if [[ -n $fields ]]; then
while read -r LINE; do
+ unset _id _val
case "$LINE" in
"otpauth://"*)
_id="OTP"
_val=""
;;
+ "${OTPmethod_field}"*)
+ # We don't show otp_method as a field that we can type
+ ;;
*)
_id="${LINE%%: *}"
_val="${LINE#* }"
;;
esac
- stuff["${_id}"]=${_val}
+ if [[ -n "$_id" ]]; then
+ stuff["${_id}"]=${_val}
+ fi
done < <(printf '%s\n' "${fields}")
if test "${stuff['autotype']+autotype}"
then