Merge branch 'main' into dev

This commit is contained in:
Abdalhamid Alhamad
2025-08-11 15:25:16 +03:00
138 changed files with 176 additions and 4251 deletions

View File

@ -165,11 +165,7 @@ export class AuthService {
}
// generate a token for the user to reset password
const token = await this.userTokenService.generateToken(
user.id,
user.roles.includes(Roles.GUARDIAN) ? UserType.GUARDIAN : UserType.JUNIOR,
moment().add(5, 'minutes').toDate(),
);
const token = await this.userTokenService.generateToken(user.id, moment().add(5, 'minutes').toDate());
return { token, user };
}