From 9a35f0ea954e897fcfb61dabc9c78cbad95031c8 Mon Sep 17 00:00:00 2001 From: Petro Kurbatskyi <67897517+ibexa-yuna@users.noreply.github.com> Date: Wed, 10 Mar 2021 08:45:44 +0100 Subject: [PATCH] Update cli.py --- src/authenticator/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/authenticator/cli.py b/src/authenticator/cli.py index da87385..2d9adb5 100644 --- a/src/authenticator/cli.py +++ b/src/authenticator/cli.py @@ -592,6 +592,8 @@ def _generate(self, id_pattern='*', refresh=5, bare=False): print("", file=self.__stdout) first_time = False soonest_expiration = self._generate_once(cds_to_calc, bare=bare) + if bare: + return if soonest_expiration is None: # we only calculate counter-based HOTPs once keep_going = False