Skip to content

[Task-7] As a user, I can get the reset password instruction via email#41

Open
gutakk wants to merge 29 commits intofeature/task-27-authenticated-routefrom
feature/task-7-reset-password-backend
Open

[Task-7] As a user, I can get the reset password instruction via email#41
gutakk wants to merge 29 commits intofeature/task-27-authenticated-routefrom
feature/task-7-reset-password-backend

Conversation

@gutakk
Copy link
Copy Markdown
Owner

@gutakk gutakk commented Jun 16, 2021

Resolve #8

What happened 👀

  • Add forgot password page and related components without styling
  • Add forgot password functionalities
  • Fix alert component to be able to render different icons.
  • Add forgot password as a public route
  • Back will redirect to home page
  • Add unit tests

Insight 📝

N/A

Proof Of Work 📹

  • Send the recovery instruction email
    Screen Shot 2564-06-21 at 13 32 06

  • Email
    Screen Shot 2564-06-21 at 13 32 58

  • Validation
    Screen Shot 2564-06-21 at 13 33 12

@gutakk gutakk added this to the 0.3.0 milestone Jun 16, 2021
@gutakk gutakk self-assigned this Jun 16, 2021
@gutakk gutakk linked an issue Jun 16, 2021 that may be closed by this pull request
@gutakk gutakk force-pushed the feature/task-27-authenticated-route branch from 5f51ab3 to a947482 Compare June 17, 2021 04:56
@gutakk gutakk force-pushed the feature/task-7-reset-password-backend branch from 72298ad to 874c61e Compare June 17, 2021 04:57
@gutakk gutakk force-pushed the feature/task-27-authenticated-route branch from a947482 to 7da4f05 Compare June 17, 2021 08:44
@gutakk gutakk force-pushed the feature/task-7-reset-password-backend branch from 2ec4d6f to cff4f67 Compare June 17, 2021 08:45
@gutakk gutakk requested review from carryall and rafayet-monon June 17, 2021 09:01
@gutakk gutakk marked this pull request as ready for review June 17, 2021 09:04
@gutakk gutakk force-pushed the feature/task-27-authenticated-route branch from 7da4f05 to 101ecff Compare June 18, 2021 09:23
@gutakk gutakk force-pushed the feature/task-7-reset-password-backend branch from cff4f67 to 857a086 Compare June 18, 2021 09:27
@gutakk gutakk force-pushed the feature/task-27-authenticated-route branch from 101ecff to 6864828 Compare June 18, 2021 10:44
@gutakk gutakk force-pushed the feature/task-7-reset-password-backend branch from 857a086 to ee3f7f2 Compare June 18, 2021 10:44
@gutakk gutakk force-pushed the feature/task-27-authenticated-route branch from 6864828 to 30e8ea0 Compare June 18, 2021 11:51
@gutakk gutakk force-pushed the feature/task-7-reset-password-backend branch from ab914cf to baa1f01 Compare June 18, 2021 11:52
Copy link
Copy Markdown
Collaborator

@rafayet-monon rafayet-monon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add appropriate PR descriptions.

@gutakk
Copy link
Copy Markdown
Owner Author

gutakk commented Jun 21, 2021

Please add appropriate PR descriptions.

Updated the PR description. I'm sure that I already updated the description before make it ready for review 🤔

@gutakk gutakk requested a review from rafayet-monon June 21, 2021 06:34
@gutakk gutakk added the @0.4.0 label Jun 21, 2021
@gutakk gutakk modified the milestones: 0.3.0, 0.4.0 Jun 21, 2021
@gutakk gutakk force-pushed the feature/task-27-authenticated-route branch from 30e8ea0 to e01c622 Compare June 21, 2021 08:46
@gutakk gutakk force-pushed the feature/task-7-reset-password-backend branch from baa1f01 to 96e7047 Compare June 21, 2021 08:47
@rafayet-monon
Copy link
Copy Markdown
Collaborator

Please add appropriate PR descriptions.

Updated the PR description. I'm sure that I already updated the description before make it ready for review 🤔

Don't know what happened but It was not shown to me 🤣

static forgotPassword = (email: string): Promise<AxiosResponse> => {
/* eslint-disable camelcase */
const requestOptions = {
headers: {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like every request is going to have this portion

headers: {
  'Content-Type': 'application/json'
}

Can we somehow add it requestManager.ts so that it isn't repeated?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not as the requestManager.ts is the generic function. We don't need this header when it comes to GET request or POST request without json body.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that's the case then how about making it DRY in some other way? As there are more API which will require json body. What do you think?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f8142ea

@gutakk gutakk requested a review from rafayet-monon June 22, 2021 05:33
@gutakk gutakk force-pushed the feature/task-7-reset-password-backend branch from f8142ea to 662db49 Compare June 29, 2021 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task-7] As a user, I can get the reset password instruction via email

2 participants