Secret key is now printed to console if using TOTP allowing for manual entry
authorAdam Dullage <redacted>
Fri, 12 May 2023 07:14:18 +0000 (08:14 +0100)
committerAdam Dullage <redacted>
Fri, 12 May 2023 07:14:18 +0000 (08:14 +0100)
flatnotes/main.py

index 9b68f955764d977dd25700affa047d1a0d6bd3e9..d4a59660ff543e98319b011c7131060c4e8bef1b 100644 (file)
@@ -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")
git clone https://git.99rst.org/PROJECT