pdovhomilja / nextcrm-app

NextCRM is a CRM build on top of the latest Next.JS 14. using TypeScript, great UI library shadcn, Prisma and MongoDB as a database. Uploadthings as a S3 blob for document storage.
https://demo.nextcrm.io
MIT License
261 stars 66 forks source link

Handling invalid login credentials / accounts that do not exist. #21

Closed asenawritescode closed 8 months ago

asenawritescode commented 8 months ago

I get an error message when I try to login with a non-exiting account.

Current behaviour : image

Expected Behaviour : Toast notifying "User email/password is incorrect" and also when performing actions

Shadcn Toast component image

Reference Usability Heuristics look at rule #9

asenawritescode commented 8 months ago

Let me know if I can contribute to the project.

pdovhomilja commented 8 months ago

Hi, of course you can. Thank you for the first issue in repo :-D

pdovhomilja commented 8 months ago

After a quick view of the problem, I forgot to set redirect to false in the auth callback. Now it is fixed.