From 6a795d70f00141cee4148e20014738e5675aa3d4 Mon Sep 17 00:00:00 2001 From: Lucas Date: Thu, 16 Jul 2020 17:07:54 +0000 Subject: [PATCH] credentials: new otpcli can handle otpauth URIs --- bin/credentials.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/credentials.sh b/bin/credentials.sh index f8733e3..40dbd65 100644 --- a/bin/credentials.sh +++ b/bin/credentials.sh @@ -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()