totp: new crate, sql migration + queries, enable totp page, save secret in database

This commit is contained in:
Philippe Loctaux 2023-04-25 23:37:24 +02:00
parent cb46556717
commit 233e26520c
26 changed files with 1116 additions and 364 deletions

View file

@ -9,7 +9,9 @@ select u.id,
u.password_recover,
u.paper_key,
u.is_archived as "is_archived: bool",
u.timezone
u.timezone,
u.totp_secret,
u.totp_backup
from users u
inner join settings s on u.id = s.first_admin