mirror of
https://codeberg.org/readeck/readeck.git
synced 2025-12-22 05:07:08 +00:00
This is only the first part. When a totp_secret exists for a user, the authentication then asks for the code and carries on. The totp lib can handle 6 or 8 letter codes and sha1, sha256 and sha512. For maximum compatibility with Google Authenticator though, it sticks to 6 character and sha1.
5 lines
171 B
SQL
5 lines
171 B
SQL
-- SPDX-FileCopyrightText: © 2025 Olivier Meunier <olivier@neokraft.net>
|
|
--
|
|
-- SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
ALTER TABLE user ADD COLUMN totp_secret bytea NULL; |