credentials: new otpcli can handle otpauth URIs
This commit is contained in:
parent
c2a5bf806a
commit
6a795d70f0
@ -45,12 +45,7 @@ get_pass()
|
|||||||
get_mfa()
|
get_mfa()
|
||||||
{
|
{
|
||||||
printf mfa
|
printf mfa
|
||||||
otpcli_opts=
|
sekrit get "$1/mfa" | otpcli | clip && printf "\n"
|
||||||
case $1 in
|
|
||||||
isnic) otpcli_opts="-H sha512 -d 8"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
sekrit get "$1/mfa" | otpcli $otpcli_opts | clip && printf "\n"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get_account()
|
get_account()
|
||||||
|
Loading…
Reference in New Issue
Block a user