GithubHelp home page GithubHelp logo

Comments (7)

oguzhanturgut avatar oguzhanturgut commented on April 23, 2024 1

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.

musafir928 avatar musafir928 commented on April 23, 2024

Finished the backend and frontend, now user can:

  1. Go to send password recovery email page(form) by hitting forgot password link on login page.
  2. Send password recovery email from send password recovery email page.
  3. After input valid email address and clicking submit button, user can receive a recovery email with link includes token .
  4. load reset password page and reset the password by click submit button.

issues (or the points not clear):

  1. password reset token can be used just once.

planned implementation:

  1. Redirect form send email page and reset page to login page after submit.
  2. simplify the code and debugging.

from class22-project.

 avatar commented on April 23, 2024

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 with axios 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 with axios 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.

 avatar commented on April 23, 2024

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.

musafir928 avatar musafir928 commented on April 23, 2024

ResetPassword & EmailConfirmation completed.
Test results without error.
After last discussion can be pushed to development branch.

from class22-project.

oguzhanturgut avatar oguzhanturgut commented on April 23, 2024

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.

 avatar commented on April 23, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.