From: Adam Dullage Date: Fri, 12 May 2023 07:14:18 +0000 (+0100) Subject: Secret key is now printed to console if using TOTP allowing for manual entry X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=5d340563154426735d1abb8c917b90e79434ee59;p=flatnotes.git Secret key is now printed to console if using TOTP allowing for manual entry --- diff --git a/flatnotes/main.py b/flatnotes/main.py index 9b68f95..d4a5966 100644 --- a/flatnotes/main.py +++ b/flatnotes/main.py @@ -41,6 +41,7 @@ if config.auth_type == AuthType.TOTP: "e.g. Authy or Google Authenticator:", ) qr.print_ascii() + print(f"Or manually enter this key: {totp.secret.decode('utf-8')}\n") @app.post("/api/token")