feat: 新增账号安全模块及资质校验功能
- 新增账号安全页面及支付密码验证组件 - 新增用户类型选择流程及商家资质管理 - 新增订单资质校验逻辑,师傅需满足订单证书要求 - 新增企业资质认证相关数据库表及接口 - 优化用户列表展示,区分个人与商家用户类型
这个提交包含在:
@@ -0,0 +1,19 @@
|
||||
-- Apply after schema_account_security.sql. Existing shared locks are preserved
|
||||
-- for both credentials because their original source cannot be distinguished.
|
||||
DELIMITER $$
|
||||
DROP PROCEDURE IF EXISTS `migrate_account_security_lockout`$$
|
||||
CREATE PROCEDURE `migrate_account_security_lockout`()
|
||||
BEGIN
|
||||
IF NOT EXISTS (SELECT 1 FROM information_schema.COLUMNS
|
||||
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'fa_user_security'
|
||||
AND COLUMN_NAME = 'payment_failed_attempts') THEN
|
||||
ALTER TABLE `fa_user_security`
|
||||
ADD COLUMN `payment_failed_attempts` int unsigned NOT NULL DEFAULT 0,
|
||||
ADD COLUMN `payment_locked_until` int unsigned NOT NULL DEFAULT 0;
|
||||
UPDATE `fa_user_security`
|
||||
SET `payment_failed_attempts` = `failed_attempts`, `payment_locked_until` = `locked_until`;
|
||||
END IF;
|
||||
END$$
|
||||
CALL `migrate_account_security_lockout`()$$
|
||||
DROP PROCEDURE `migrate_account_security_lockout`$$
|
||||
DELIMITER ;
|
||||
在新工单中引用
屏蔽一个用户