User_exists error message in "create" Database Action Scripts

When using my own database and check user existed in postgres
I tried return this error
if (result.rows.length > 0) return next(new ValidationError("user_exists", "User existed."));

but the login form simply shows vague message like
“There is an error. Please try again later”

How can I customize this error message?

image-11-04-2024_03_23_PM

Hi @quanlm,

Thanks for reaching out to the Auth0 Community!

You can customize that error message for the signup screen by modifying the auth0-users-validation text field.


(Reference: Customize Universal Login Text Elements)

Thanks,
Rueben

1 Like