jalantechnologies / rflask-boilerplate

Boilerplate code for building projects using Python, Flask and React
0 stars 4 forks source link

Feat: Add Reset Password Flow #15

Closed abhishek310001 closed 6 months ago

abhishek310001 commented 7 months ago

Description

This PR introduces functionality of resetting password on backend as well as frontend. Screenshots and Videos are added for functionality view and UI.

Screenshots:

Screenshot 2024-04-23 at 03 45 25 Screenshot 2024-04-23 at 03 45 40
Screenshot 2024-04-23 at 03 45 59 Screenshot 2024-04-23 at 03 46 11

Video:

Video Demonstrating usage of Reset Password:

https://github.com/jalantechnologies/rflask-boilerplate/assets/128154648/345feb75-94a4-4ce0-a9f2-84647a3bab00

Video demonstrating usage of used Reset Password Link:

https://github.com/jalantechnologies/rflask-boilerplate/assets/128154648/004c5253-1747-4823-a874-46293c9cacc1

Database schema changes

Added a new password_reset_token schema

password_reset_token {
    id: ObjectId
    account: ObjectId
    expires_at: datetime 
    token: str
    is_used: bool
} 

Tests

Automated test cases added

Manual test cases run

For each manual test case, list the steps to test or reproduce the PR.

jalan-technologies-sonarqube[bot] commented 7 months ago

Failed

Analysis Details

4 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

github-actions[bot] commented 7 months ago

Deployment (frm-boilerplate) is available at - https://17bf8f2af7b0a03.preview.platform.jalantechnologies.com

jalan-technologies-sonarqube[bot] commented 7 months ago

Failed

Analysis Details

2 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

jalan-technologies-sonarqube[bot] commented 7 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

jalan-technologies-sonarqube[bot] commented 7 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

github-actions[bot] commented 7 months ago

Deployment (frm-boilerplate) is available at - https://17bf8f2af7b0a03.preview.platform.jalantechnologies.com

jalan-technologies-sonarqube[bot] commented 7 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

jalan-technologies-sonarqube[bot] commented 7 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

github-actions[bot] commented 7 months ago

Deployment (frm-boilerplate) is available at - https://17bf8f2af7b0a03.preview.platform.jalantechnologies.com

jalan-technologies-sonarqube[bot] commented 7 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

github-actions[bot] commented 7 months ago

Deployment (frm-boilerplate) is available at - https://17bf8f2af7b0a03.preview.platform.jalantechnologies.com

jalan-technologies-sonarqube[bot] commented 7 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

github-actions[bot] commented 7 months ago

Deployment (frm-boilerplate) is available at - https://17bf8f2af7b0a03.preview.platform.jalantechnologies.com

bbbneo333 commented 7 months ago

@abhishek310001 - I went through the experience and tried resetting my account. I did received a mail, but clicking on reset button does not do anything. Can take a look?

Screenshot 2024-04-23 at 16 06 36

abhishek310001 commented 7 months ago

@abhishek310001 - I went through the experience and tried resetting my account. I did received a mail, but clicking on reset button does not do anything. Can take a look?

Screenshot 2024-04-23 at 16 06 36

Hey, this is working fine for me also I've uploaded the video which uses the preview link. Can you try this once with gmail account? I think due to some security reason outlook is not letting you click the button. Let me know if this still isn't working.

bbbneo333 commented 7 months ago

@abhishek310001 -

I think due to some security reason outlook is not letting you click the button.

I don't think it's a security issue. The URL might be malformed. Can check exactly the value of the the button and paste it here?

abhishek310001 commented 7 months ago

@abhishek310001 -

I think due to some security reason outlook is not letting you click the button.

I don't think it's a security issue. The URL might be malformed. Can check exactly the value of the the button and paste it here?

Sure, here's the URL on the button http://17bf8f2af7b0a03.preview.platform.jalantechnologies.com/accounts/6621f7ad1b3a64f6fd086ac0/reset_password?token=f539d6d442a6a8ffda7bf3c07769a0c6d720b1a309835d945cb90042588971c3 the token value is unique to each password reset link

bbbneo333 commented 7 months ago

Think "Resend email in 00: 00" should hide when counter hits 0 and user is able to send link again.

Screenshot 2024-04-24 at 14 24 51

abhishek310001 commented 7 months ago

Think "Resend email in 00: 00" should hide when counter hits 0 and user is able to send link again.

Screenshot 2024-04-24 at 14 24 51

Fixed this issue

jalan-technologies-sonarqube[bot] commented 7 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

github-actions[bot] commented 7 months ago

Deployment (frm-boilerplate) is available at - https://17bf8f2af7b0a03.preview.platform.jalantechnologies.com

jalan-technologies-sonarqube[bot] commented 7 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

github-actions[bot] commented 7 months ago

Deployment (frm-boilerplate) is available at - https://17bf8f2af7b0a03.preview.platform.jalantechnologies.com

jalan-technologies-sonarqube[bot] commented 7 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

jalan-technologies-sonarqube[bot] commented 6 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

jalan-technologies-sonarqube[bot] commented 6 months ago

Passed

Analysis Details

0 Issues

Coverage and Duplications

Project ID: jalantechnologies_rflask-boilerplate

View in SonarQube

github-actions[bot] commented 6 months ago

Deployment (frm-boilerplate) is available at - https://17bf8f2af7b0a03.preview.platform.jalantechnologies.com