fix: 修复管理员默认密码哈希
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
cc3de9244c
commit
885e84f823
|
|
@ -223,11 +223,12 @@ CREATE INDEX idx_balance_transactions_created_at ON balance_transactions(created
|
|||
-- ===========================================
|
||||
|
||||
-- 创建默认管理员 (密码: admin123)
|
||||
-- 密码哈希使用 bcrypt 生成: echo -n "admin123" | htpasswd -bnBC 10 "" - | tr -d ':\n'
|
||||
INSERT INTO admins (id, username, password_hash, name, role, permissions)
|
||||
VALUES (
|
||||
uuid_generate_v4(),
|
||||
'admin',
|
||||
'$2b$10$rQZ8K.N3VZ5Z5Z5Z5Z5Z5uJZJZJZJZJZJZJZJZJZJZJZJZJZJZJZ',
|
||||
'$2b$10$N9qo8uLOickgx2ZMRZoMyeIjZRGdjGj/n3.QHZWL1xOsV7.Hq5mLe',
|
||||
'系统管理员',
|
||||
'SUPER_ADMIN',
|
||||
'["*"]'
|
||||
|
|
|
|||
Loading…
Reference in New Issue