Back

Password length

  • 0
  • Cloud
Rienkk
6 Nov, 2024, 16:29

Hi all,

I use AppWrite cloud and I am migrating an old backend. In the old backend password length could be shorter than 8.

I have migrated these users via the Server SDK, with no problems. However the users with shorter passwords now can't log in. It throws an error that the password should have a minimum length of 8.

Is there a way to disable this rule?

Thanks in advance

TL;DR
Recommendation: Consider generating random passwords for increased security or padding existing passwords until they reach the 8-character minimum. Set temporary passwords during migration and prompt users to reset upon first login for improved security. Unfortunately, the password length rule cannot be disabled in this case.
Axistro
6 Nov, 2024, 16:49

You can set a temporary password that meets the 8-character minimum during migration and then ask users to reset their passwords upon first login. This way, they’ll set a new, secure password themselves.

Axistro
6 Nov, 2024, 16:49

Or If you want to keep the old passwords as close to the original as possible, consider padding them. For example, you could add characters like * or ! to the end of each password until it reaches 8 characters. This would allow users to log in with a modified version of their old password, but they would need to be informed of this change.

D5
6 Nov, 2024, 17:20

I recommend generating a random password and forcing users to generate a new one in order to get a better protection

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