Hi, I'm trying to setup the dashboard. I'm trying ...
# support-questions-legacy
a
Hi, I'm trying to setup the dashboard. I'm trying to create a user using the CLI command but I'm getting
{"status":"INVALID_EMAIL_ERROR"}
Copy code
curl --location --request POST 'https://xxx.aws.supertokens.io/recipe/dashboard/user' \
--header 'rid: dashboard' \
--header 'api-key: <YOUR-API-KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{"email": "<YOUR_EMAIL>","password": "<YOUR_PASSWORD>"}'
My email ends in
.dev
is there some validation going on?
r
hey @avery_05391
this is the code we run in the core rto check for eemail validity:
Copy code
public static boolean isValidEmail(String email) {
        // We use the same regex as the backend SDK
        // https://github.com/supertokens/supertokens-node/blob/master/lib/ts/recipe/emailpassword/utils.ts#L250
        String regexPatternForEmail =
                "((^<>()[].,;:@]+(.^<>()[].,;:@]+)*)|(.+))@(([[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" +
                        ".[0-9]{1,3}])|(([a-zA-Z-0-9]+.)+[a-zA-Z]{2,}))$";
        return patternMatcher(email, regexPatternForEmail);
    }
i think that should allow have allowed your email..
what email are you trying?
8 Views