diff --git a/packages/playground/src/utils/validators.ts b/packages/playground/src/utils/validators.ts index 549b40a401..d475d1c467 100644 --- a/packages/playground/src/utils/validators.ts +++ b/packages/playground/src/utils/validators.ts @@ -780,6 +780,9 @@ export async function isAvailableName(grid: GridClient, name: string) { export function validateSmtp(v: string) { const emailValidation = isEmail("Please provide a valid email address.")(v); - const username = isAlpha("Name must start with an alphabetical character.")(v[0]); - return emailValidation && username; + const username = !v.includes("@"); + if (username) { + return username; + } + return emailValidation; }