credentials: new otpcli can handle otpauth URIs

This commit is contained in:
Lucas 2020-07-16 17:07:54 +00:00
parent c2a5bf806a
commit 6a795d70f0

View File

@ -45,12 +45,7 @@ get_pass()
get_mfa()
{
printf mfa
otpcli_opts=
case $1 in
isnic) otpcli_opts="-H sha512 -d 8"
;;
esac
sekrit get "$1/mfa" | otpcli $otpcli_opts | clip && printf "\n"
sekrit get "$1/mfa" | otpcli | clip && printf "\n"
}
get_account()