Back

[SOLVED] Password Error

  • 0
  • Self Hosted
  • Web
GreY
28 Dec, 2023, 01:27

Hello! I am getting an error that says- "AppwriteException: Invalid password param: Password must be at least 8 characters and should not be one of the commonly used password. at Client.<anonymous> (http://localhost:3000/node_modules/.vite/deps/appwrite.js?v=53df4afb:850:17) at Generator.next (<anonymous>) at fulfilled (http://localhost:3000/node_modules/.vite/deps/appwrite.js?v=53df4afb:488:24)"

while hitting the sign up button to create a new user in my web application.

TL;DR
The user was getting a "Password Error" while trying to sign up on a web application. They solved the issue by formatting the .env.local file correctly. The error occurred after creating the project. The error message indicated that the password must be at least 8 characters long and not commonly used.
GreY
28 Dec, 2023, 01:27

These are my code files-

GreY
28 Dec, 2023, 01:27

The sign up form

GreY
28 Dec, 2023, 01:28
GreY
28 Dec, 2023, 01:29
GreY
28 Dec, 2023, 01:29

Validation file

GreY
28 Dec, 2023, 01:30

The INewUser object is a simple typescript type with name, email, username and password

GreY
28 Dec, 2023, 01:30
GreY
28 Dec, 2023, 01:31

this is the error I am getting after hitting the submit button in my form

Drake
28 Dec, 2023, 05:13

Switch to the network tab, look for the related request, and check the payload. Is the password in the request as expected?

GreY
28 Dec, 2023, 05:32

It seems to be working now after i used the .env.local file and formatted it correctly, this was just after I had created the project so maybe that had something to do with it. Thank you for your time!

Drake
28 Dec, 2023, 05:43

[SOLVED] Password Error

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more