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: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' #SET_BROWSER='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0'
# oathtool command line # oathtool command line tool
SET_OATHTOOL='oathtool --base32 --totp' SET_OATHTOOL='/usr/bin/oathtool'
# tmp path # tmp path
SET_TMP="/tmp" SET_TMP="/tmp"
@ -414,7 +414,7 @@ ${CURL} ${OPTS} -s -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language
# add OTP if using MFA # add OTP if using MFA
# #
if [ -n "${MFA_SECRET}" ] ; then if [ -n "${MFA_SECRET}" ] ; then
OTP=$(${OATHTOOL} "${MFA_SECRET}") OTP=$(${OATHTOOL} -b --totp "${MFA_SECRET}")
PASSWORD="${PASSWORD}${OTP}" PASSWORD="${PASSWORD}${OTP}"
fi 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: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' #SET_BROWSER='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0'
# oathtool command line # oathtool command line tool
SET_OATHTOOL='oathtool --base32 --totp' SET_OATHTOOL='/usr/bin/oathtool'
# tmp path # tmp path
SET_TMP="/tmp" SET_TMP="/tmp"
@ -354,7 +354,7 @@ ${CURL} ${OPTS} -s -c ${COOKIE} -b ${COOKIE} -A "${BROWSER}" -H "Accept-Language
# add OTP if using MFA # add OTP if using MFA
# #
if [ -n "${MFA_SECRET}" ] ; then if [ -n "${MFA_SECRET}" ] ; then
OTP=$(${OATHTOOL} "${MFA_SECRET}") OTP=$(${OATHTOOL} -b --totp "${MFA_SECRET}")
PASSWORD="${PASSWORD}${OTP}" PASSWORD="${PASSWORD}${OTP}"
fi fi