cdelacruzzin / ClotheStation

Welcome to the Clothestation! This is an e-commerce platform, which can be used in many ways. Here it is used as a Skating Clothes Apparel. We built this project to help any business to sell and display their project in a great and polished UI. This project is our first MERN Full Stack Application built from scratch.
https://urban-sk8-ef054e6c42c1.herokuapp.com/
MIT License
1 stars 1 forks source link

fix the isCorrectPassword function #38

Open cdelacruzzin opened 1 year ago

cdelacruzzin commented 1 year ago
  const correctPw = await user.isCorrectPassword(password);
  if (!correctPw) {
    throw new AuthentificationError("Incorrect credentials");
  }

this is in the resolvers. it's throwing an error because correctPw is false. that means the isCorrectPassword function logic is flawed.

this needs to be fixed

Koro999 commented 1 year ago

fixed