feat: add email_verified_at field to auth controller mock responses and user management service
Add email_verified_at field to mock user responses in login, registerInstructor, and registerStudent endpoints. Include email_verified_at in UserManagementService user response mapping to ensure consistency across all user-related endpoints.
This commit is contained in:
parent
48e8f56e22
commit
06db182c46
2 changed files with 4 additions and 0 deletions
|
|
@ -37,6 +37,7 @@ export class AuthController {
|
|||
id: 1,
|
||||
username: 'admin',
|
||||
email: 'admin@elearning.local',
|
||||
email_verified_at: new Date('2024-01-01T00:00:00Z'),
|
||||
updated_at: new Date('2024-01-01T00:00:00Z'),
|
||||
created_at: new Date('2024-01-01T00:00:00Z'),
|
||||
role: {
|
||||
|
|
@ -86,6 +87,7 @@ export class AuthController {
|
|||
id: 4,
|
||||
username: 'newinstructor',
|
||||
email: 'instructor@example.com',
|
||||
email_verified_at: null,
|
||||
updated_at: new Date('2024-01-01T00:00:00Z'),
|
||||
created_at: new Date('2024-01-01T00:00:00Z'),
|
||||
role: {
|
||||
|
|
@ -134,6 +136,7 @@ export class AuthController {
|
|||
id: 4,
|
||||
username: 'newstudent',
|
||||
email: 'student@example.com',
|
||||
email_verified_at: null,
|
||||
updated_at: new Date('2024-01-01T00:00:00Z'),
|
||||
created_at: new Date('2024-01-01T00:00:00Z'),
|
||||
role: {
|
||||
|
|
|
|||
|
|
@ -183,6 +183,7 @@ export class UserManagementService {
|
|||
id: user.id,
|
||||
username: user.username,
|
||||
email: user.email,
|
||||
email_verified_at: user.email_verified_at,
|
||||
created_at: user.created_at,
|
||||
updated_at: user.updated_at,
|
||||
role: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue