Skip to content

Commit

Permalink
refactor(api): delete useless validation and add a note on password c…
Browse files Browse the repository at this point in the history
…ontroller routes
  • Loading branch information
mariannebost committed Jul 8, 2024
1 parent 36997ac commit 31e96ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ export const passwordRoutes = [
data: {
attributes: {
email: Joi.string().email().required(),
// TODO supprimer "temporary-key" car il est généré dans le usecase associé à cette route
'temporary-key': [Joi.string(), null],
},
type: Joi.string(),
},
Expand All @@ -31,6 +29,10 @@ export const passwordRoutes = [
config: {
auth: false,
handler: (request, h) => passwordController.checkResetDemand(request, h),
notes: [
'Route publique',
'Cette route permet la redirection vers le formulaire de reset de mot de passe si la demande est bien dans la liste',
],
tags: ['api', 'passwords'],
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ describe('Unit | Identity Access Management | Application | Route | password', f
data: {
attributes: {
email: 'uzinagaz@example.net',
'temporary-key': 'clé',
},
type: 'password-reset',
},
Expand Down

0 comments on commit 31e96ee

Please sign in to comment.