Fix towards the new password expiration policy

This commit is contained in:
Pinga 2025-02-11 23:37:17 +02:00
parent ddfb8fed75
commit 6968bfafa2
7 changed files with 191 additions and 9 deletions

View file

@ -605,6 +605,7 @@ CREATE TABLE IF NOT EXISTS `registry`.`users` (
`tfa_enabled` TINYINT DEFAULT 0,
`auth_method` ENUM('password', '2fa', 'webauthn') DEFAULT 'password',
`backup_codes` TEXT,
`password_last_updated` timestamp NULL DEFAULT current_timestamp(),
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Panel Users';