LingAdmin/Backend/LingAdmin.API/update-passwords.sql

11 lines
494 B
MySQL
Raw Permalink Normal View History

2026-04-16 18:13:06 +08:00
-- Update all users with properly hashed password for "Password123!"
-- First, we need to generate a proper hash using the application's hash algorithm
-- This is a temporary workaround - in production, users should reset passwords
-- For now, let's use a simple approach: clear the existing bad hash and set a known good one
-- After testing, users can register or change their password properly
UPDATE Users
SET PasswordHash = 'TEMPORARY_TO_BE_UPDATED'
WHERE Id IN (1,2,3,4,5,6,7,8,9,10);