pangu-user-platform/backend/pangu-modules/pangu-business/sql/reset_wuhan_password.sql

14 lines
576 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ============================================================
-- 重置分公司用户 wuhan 的登录密码为 admin123
-- 使用方式:在对应库中执行本脚本后,用 wuhan / admin123 登录
-- ============================================================
USE `pguser-db`;
-- 与 init 脚本中相同的 BCrypt 哈希admin123
UPDATE sys_user
SET password = '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2'
WHERE user_name = 'wuhan';
-- 若上面影响行数为 0说明 wuhan 用户不存在,请先执行 system_init_data.sql 初始化