From 9b3cafc678dce43558d57ebe7164e6e330e9e0ee Mon Sep 17 00:00:00 2001 From: Moviuro Date: Tue, 5 Dec 2017 20:20:15 +0100 Subject: rofi-pass: the "OTP" field will appear in rofi when applicable * when there is an otpauth:// line * when there is an otp_method: line --- rofi-pass | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rofi-pass b/rofi-pass index 96e043b..9c395b4 100755 --- a/rofi-pass +++ b/rofi-pass @@ -350,13 +350,10 @@ mainMenu () { while read -r LINE; do unset _id _val case "$LINE" in - "otpauth://"*) + "otpauth://"*|"${OTPmethod_field}"*) _id="OTP" _val="" ;; - "${OTPmethod_field}"*) - # We don't show otp_method as a field that we can type - ;; *) _id="${LINE%%: *}" _val="${LINE#* }" -- cgit