feat(auth): change default admin password to admin and default agent password to 123 using TDD
This commit is contained in:
1 parent
14a4b7bce5
commit
bb89e6ad2a
4 files changed
+45
-5
No files matched your search
@@ -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!`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user