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,
|
id: 1,
|
||||||
username: 'admin',
|
username: 'admin',
|
||||||
email: 'admin@elearning.local',
|
email: 'admin@elearning.local',
|
||||||
|
email_verified_at: new Date('2024-01-01T00:00:00Z'),
|
||||||
updated_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'),
|
created_at: new Date('2024-01-01T00:00:00Z'),
|
||||||
role: {
|
role: {
|
||||||
|
|
@ -86,6 +87,7 @@ export class AuthController {
|
||||||
id: 4,
|
id: 4,
|
||||||
username: 'newinstructor',
|
username: 'newinstructor',
|
||||||
email: 'instructor@example.com',
|
email: 'instructor@example.com',
|
||||||
|
email_verified_at: null,
|
||||||
updated_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'),
|
created_at: new Date('2024-01-01T00:00:00Z'),
|
||||||
role: {
|
role: {
|
||||||
|
|
@ -134,6 +136,7 @@ export class AuthController {
|
||||||
id: 4,
|
id: 4,
|
||||||
username: 'newstudent',
|
username: 'newstudent',
|
||||||
email: 'student@example.com',
|
email: 'student@example.com',
|
||||||
|
email_verified_at: null,
|
||||||
updated_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'),
|
created_at: new Date('2024-01-01T00:00:00Z'),
|
||||||
role: {
|
role: {
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,7 @@ export class UserManagementService {
|
||||||
id: user.id,
|
id: user.id,
|
||||||
username: user.username,
|
username: user.username,
|
||||||
email: user.email,
|
email: user.email,
|
||||||
|
email_verified_at: user.email_verified_at,
|
||||||
created_at: user.created_at,
|
created_at: user.created_at,
|
||||||
updated_at: user.updated_at,
|
updated_at: user.updated_at,
|
||||||
role: {
|
role: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue