feat(auth): change default admin password to admin and default agent password to 123 using TDD

This commit is contained in:
Rafif-Riqullah-Siregar committed 2026-07-02 14:48:14 +07:00
1 parent 14a4b7bce5
commit bb89e6ad2a
4 files changed
+45 -5

No files matched your search

+2 -2
View File
@@ -37,8 +37,8 @@ for (const u of expectedUsernames) {
}
console.log(`✅ User verified: '${u}' (Role: ${user.role}, Agent UUID: ${user.agent_uuid})`);
// Verify password matches agent123
const pwOk = bcrypt.compareSync('agent123', user.password_hash);
// Verify password matches 123
const pwOk = bcrypt.compareSync('123', user.password_hash);
if (!pwOk) {
throw new Error(`❌ TEST FAILED: Password for user '${u}' is incorrect!`);
}