Comments (7)
Fix PasswordReset component logic
Removed auth checking in PasswordResef and PasswordEmailForm components
So far, it seems that feature is ready to go 🚀
from class22-project.
Finished the backend and frontend, now user can:
- Go to send password recovery email page(form) by hitting forgot password link on login page.
- Send password recovery email from send password recovery email page.
- After input valid email address and clicking submit button, user can receive a recovery email with link includes token .
- load reset password page and reset the password by click submit button.
issues (or the points not clear):
- password reset token can be used just once.
planned implementation:
- Redirect form send email page and reset page to login page after submit.
- simplify the code and debugging.
from class22-project.
About the feature "forget Password & reset it" I finish my version of the back end:
In my local branch I added 2 endpoints with validation Express middle-ware.
-
The first:
http://localhost:5000/api/auth/forgot-password
it is written with classic CallBack syntax.
we can use it in the front end withaxios
and as a result a mail will be sent to the user email. -
The second:
http://localhost:5000/api/auth/reset-password
it is written with ES6 asyc/awit syntax.
we can use it in the front end withaxios
to update the password in the database.
tomorrow we have to find out how we can go on and what for code we are going to use?
from class22-project.
I finished adding my code to Oguzhan code and I pushed it to GitHub.
until now:
-
Email Confirmation: totally doen, backend and front end, and with reusable separated
nodeMailer
file. -
Forget/Reset Password: We have a local version, it is from Adil . It is almost complete (back/and front end). on the other hand we have backend version form Adham and it is compiled with Oguzhan code and pushed to GitHub.
next step
Compile Adil frontEnd code with the whole work , or the whole code from Adil instead of using the backend form Adham.
the coming few hours are really challenging.
from class22-project.
ResetPassword & EmailConfirmation completed.
Test results without error.
After last discussion can be pushed to development branch.
from class22-project.
changed promises to async await code at backend routes
password reset redirects to login now
made some refactoring
changed mail transport service from nodemailer to sendgrid
changed mail contents
good to go 👍
from class22-project.
on local branch I adjusted 2 files.
The first:
routes\api\auth.js
The second:
client\src\components\password-forms\PasswordEmailForm.js
it is about if a user does like as he forget his password , but he is actually not a user in our database.
I adjusted the Axios in the front end and the response in the backend.
the files are sent to the team's member so they can implement them safely in the whole App.
from class22-project.
Related Issues (13)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from class22-project.