diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].ts index 6d5aeab..26490d2 100644 --- a/pages/api/auth/[...nextauth].ts +++ b/pages/api/auth/[...nextauth].ts @@ -144,6 +144,7 @@ export const authOptions: NextAuthOptions = { throw new Error("Моля проверете вашия имейл '" + credentials?.username + "' за да потвърдите регистрацията си."); } else { + throw new Error("Не можем да намерим твоя имейл '" + credentials?.username + "' в участниците в ССОМ. Моля свържи се с нас за да те регистрираме ако искаш да ползваш този имейл."); } } catch (err) { @@ -152,7 +153,8 @@ export const authOptions: NextAuthOptions = { } } } - }) + } + }) /* EmailProvider({ server: {