git.99rst.org
/
flatnotes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
8550e6e
)
Secret key is now printed to console if using TOTP allowing for manual entry
author
Adam Dullage
<redacted>
Fri, 12 May 2023 07:14:18 +0000
(08:14 +0100)
committer
Adam Dullage
<redacted>
Fri, 12 May 2023 07:14:18 +0000
(08:14 +0100)
flatnotes/main.py
patch
|
blob
|
history
diff --git
a/flatnotes/main.py
b/flatnotes/main.py
index 9b68f955764d977dd25700affa047d1a0d6bd3e9..d4a59660ff543e98319b011c7131060c4e8bef1b 100644
(file)
--- 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")
git clone https://git.99rst.org/PROJECT