aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoviuro <moviuro+git@gmail.com>2017-12-05 20:20:15 +0100
committerMoviuro <moviuro+git@gmail.com>2017-12-05 20:20:15 +0100
commit9b3cafc678dce43558d57ebe7164e6e330e9e0ee (patch)
tree5fcd772b4f3c998b07b4ff56db66a0038bf06531
parentc7d4c16b0dca2c611a9951fd462529f650d99885 (diff)
downloadrofi-pass-9b3cafc678dce43558d57ebe7164e6e330e9e0ee.tar.gz
rofi-pass: the "OTP" field will appear in rofi when applicable
* when there is an otpauth:// line * when there is an otp_method: line
-rwxr-xr-xrofi-pass5
1 files changed, 1 insertions, 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#* }"