fix for codes that include a username/email
This commit is contained in:
parent
1b8c53f29a
commit
b3a9d1010b
1 changed files with 1 additions and 1 deletions
2
otpish
2
otpish
|
@ -61,7 +61,7 @@ fi
|
|||
if [ "${COMMAND}" = "get" ]; then
|
||||
if [ -z ${NAME} ]; then echo get requires a name; exit; fi
|
||||
if ! [ -f ${OTP} ]; then echo no otps configured add one first; exit; fi
|
||||
uri=$(age -i ${PRIVKEY} -d ${OTP} | grep "/${NAME}?")
|
||||
uri=$(age -i ${PRIVKEY} -d ${OTP} | grep "/${NAME}")
|
||||
otp_info=$(echo -n ${uri} | cut -d '?' -f 2)
|
||||
oIFS=${IFS}
|
||||
IFS="&"
|
||||
|
|
Reference in a new issue