Back

[SOLVED] LOG [AppwriteException: Invalid email: Value must be a valid email address]

  • 0
  • Android
  • Accounts
  • Web
  • Users
Ahmed
20 May, 2023, 06:11

password problem

TL;DR
The user was facing an "AppwriteException: Invalid email: Value must be a valid email address" error. They realized it was their mistake and they had the correct sequence but entered values in the wrong order. The suggested solution was to check if the password meets the required policy (at least 8 characters). The user also asked for the code and suggested using a password with 10 characters including a letter and symbol, but the error still occurred. It was then discovered that the user had mistakenly entered their username as the password. The correct order and placement of all the values were confirmed, and it was suggested to check if the password
Ahmed
20 May, 2023, 06:11

i gave 9 chars but even it is invalid

Ahmed
20 May, 2023, 06:13

please reply

D5
20 May, 2023, 06:13

Seeing

Ahmed
20 May, 2023, 06:13

kk

D5
20 May, 2023, 06:14

Are you sure everything is placed in the correct order?

D5
20 May, 2023, 06:14

Not only email, everything, like I've specified

D5
20 May, 2023, 06:15

I think you have the user name, as the password

Ahmed
20 May, 2023, 06:16

the order is this right..

{"$createdAt": "2023-05-20T04:59:55.195+00:00", "$id": "2e01e8d9-e77b-49ab-93e2-b44351aac5bc", "$updatedAt": "2023-05-20T04:59:55.195+00:00", "email": "walterobrian@example.com", "emailVerification": false, "name": "Walter o'Brian", "passwordUpdate": "2023-05-20T04:59:55.194+00:00", "phone": "", "phoneVerification": false, "prefs": {}, "registration": "2023-05-20T04:59:55.194+00:00", "status": true}

Ahmed
20 May, 2023, 06:16

even if i give different values for name and password it's giving same error

D5
20 May, 2023, 06:17

And if you use 10 characters with 1 letter and symbol?

D5
20 May, 2023, 06:17

Maybe you're not meeting the password policy set

Ahmed
20 May, 2023, 06:18
Ahmed
20 May, 2023, 06:20

password required string
New user password. Must be at least 8 chars.

D5
20 May, 2023, 06:25

Make console.log(user.password) inside the account.create function

D5
20 May, 2023, 06:25

And send what the console shows

Ahmed
20 May, 2023, 06:30
D5
20 May, 2023, 06:32

And what's the code for that?

D5
20 May, 2023, 06:32

(the account.create code)

Ahmed
20 May, 2023, 06:40

thank you D5

Ahmed
20 May, 2023, 06:40

you told me the correct sequence and order but i mistakenly did unordered

Ahmed
20 May, 2023, 06:40

that was my mistake

Ahmed
20 May, 2023, 06:41

πŸ™‚

D5
20 May, 2023, 06:49

Oh, perfect then, I thought there was any conflict with something else

D5
20 May, 2023, 06:50

[SOLVED] LOG [AppwriteException: Invalid email: Value must be a valid email address]

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