Fix jwt-token
This commit is contained in:
@@ -150,8 +150,8 @@ async function createTestUser(userData = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const defaultUserData = {
|
const defaultUserData = {
|
||||||
username: 'testuser',
|
username: userData.username || `testuser-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`,
|
||||||
email: 'test@example.com',
|
email: userData.email || `test-${Date.now()}-${Math.random().toString(36).substr(2, 9)}@example.com`,
|
||||||
password_hash: '$2b$10$dummyHashForTestingOnly',
|
password_hash: '$2b$10$dummyHashForTestingOnly',
|
||||||
role: 'admin',
|
role: 'admin',
|
||||||
tenant_id: tenant.id,
|
tenant_id: tenant.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user