Skip to content

Use email service in password recovery #171

@jamcunha

Description

@jamcunha

As #82 wasn't ready yet, we did not use the email service in the password recovery method done in #113.

Regarding testing the password recovery request, we should:

  • Check that we do not send an email nor generate the token if the account does not exist.
  • Check that we generate and send the token if the account exists.

We can use mocks to confirm that functions are being called instead of sending actual emails.

Regarding testing the processing of the request part, additional tests should not be needed, but a refactor is necessary to receive the token for the test.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions