添加登入添加Google Authenticator TOTP六位动态码 授权登。2. 保留Google登录并支持动态码登录
This commit is contained in:
1 parent
42a06f7e4d
commit
cc5fe279e9
13 files changed
+714
-2
No files matched your search
@@ -0,0 +1,9 @@
|
||||
-- 增量执行,不修改已有用户及 Google OAuth 绑定。
|
||||
CREATE TABLE IF NOT EXISTS sys_user_totp (
|
||||
user_id BIGINT NOT NULL COMMENT '本地用户 ID,一人一个 Authenticator',
|
||||
secret_cipher VARCHAR(255) CHARACTER SET ascii COLLATE ascii_bin NOT NULL COMMENT 'AES-256-GCM 密文',
|
||||
last_used_step BIGINT NOT NULL DEFAULT -1 COMMENT '防重放:最近消费的 30 秒时间步',
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (user_id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户 Authenticator 动态码凭据';
|
||||
Reference in new issue
Block a user