Skip to content

Commit

Permalink
refactor: update error wordings
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyevskii committed Jul 18, 2024
1 parent f8248cb commit f9f2f59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function validator(ctx: AppKoaContext<ValidatedData>, next: Next) {
const user = await userService.findOne({ email: ctx.validatedData.email });

ctx.assertClientError(user, {
email: 'The email address is not associated with any account.',
email: 'The email address is not associated with any existing account.',
});

ctx.validatedData.user = user;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function validator(ctx: AppKoaContext<ValidatedData>, next: Next) {
const user = await userService.findOne({ email });

ctx.assertClientError(user, {
email: 'The email address is not associated with any account.',
email: 'The email address is not associated with any existing account.',
});

ctx.validatedData.user = user;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function validator(ctx: AppKoaContext<ValidatedData>, next: Next) {
const user = await userService.findOne({ resetPasswordToken: token });

ctx.assertClientError(user, {
email: 'The email address is not associated with any account.',
email: 'The email address is not associated with any existing account.',
});

ctx.validatedData.user = user;
Expand Down

0 comments on commit f9f2f59

Please sign in to comment.