cleaned up oathtool config

This commit is contained in:
Alex 2019-07-08 22:41:22 +02:00
parent ca7a12deb1
commit 752cd51e8e
2 changed files with 6 additions and 6 deletions

View File

@ -85,8 +85,8 @@ SET_OPTS='--compressed --http1.1'
SET_BROWSER='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:1.0) bash-script/1.0'
#SET_BROWSER='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0'
# oathtool command line
SET_OATHTOOL='oathtool --base32 --totp'
# oathtool command line tool
SET_OATHTOOL='/usr/bin/oathtool'
# tmp path
SET_TMP="/tmp"
@ -414,7 +414,7 @@ ${CURL} ${OPTS} -s -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language
# add OTP if using MFA
#
if [ -n "${MFA_SECRET}" ] ; then
OTP=$(${OATHTOOL} "${MFA_SECRET}")
OTP=$(${OATHTOOL} -b --totp "${MFA_SECRET}")
PASSWORD="${PASSWORD}${OTP}"
fi

View File

@ -44,8 +44,8 @@ SET_OPTS='--compressed --http1.1'
SET_BROWSER='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:1.0) bash-script/1.0'
#SET_BROWSER='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0'
# oathtool command line
SET_OATHTOOL='oathtool --base32 --totp'
# oathtool command line tool
SET_OATHTOOL='/usr/bin/oathtool'
# tmp path
SET_TMP="/tmp"
@ -354,7 +354,7 @@ ${CURL} ${OPTS} -s -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language
# add OTP if using MFA
#
if [ -n "${MFA_SECRET}" ] ; then
OTP=$(${OATHTOOL} "${MFA_SECRET}")
OTP=$(${OATHTOOL} -b --totp "${MFA_SECRET}")
PASSWORD="${PASSWORD}${OTP}"
fi