feat: onboarding pre-work
This commit is contained in:
@@ -157,12 +157,11 @@ export class UserProfileController {
|
||||
});
|
||||
}
|
||||
|
||||
const { password, confirmationText } = validation.data;
|
||||
const { confirmationText } = validation.data;
|
||||
|
||||
// Request deletion
|
||||
// Request deletion (user is already authenticated via JWT)
|
||||
const profile = await this.userProfileService.requestDeletion(
|
||||
auth0Sub,
|
||||
password,
|
||||
confirmationText
|
||||
);
|
||||
|
||||
@@ -178,13 +177,6 @@ export class UserProfileController {
|
||||
userId: request.userContext?.userId,
|
||||
});
|
||||
|
||||
if (error.message.includes('Invalid password')) {
|
||||
return reply.code(401).send({
|
||||
error: 'Unauthorized',
|
||||
message: 'Invalid password',
|
||||
});
|
||||
}
|
||||
|
||||
if (error.message.includes('Invalid confirmation')) {
|
||||
return reply.code(400).send({
|
||||
error: 'Bad Request',
|
||||
|
||||
Reference in New Issue
Block a user