Frank 10 månader sedan
förälder
incheckning
4663ea5faa
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      packages/console/function/src/auth.ts

+ 1 - 0
packages/console/function/src/auth.ts

@@ -134,6 +134,7 @@ export default {
         if (!subject) throw new Error("No subject found")
         if (!subject) throw new Error("No subject found")
 
 
         if (Resource.App.stage !== "production" && !email.endsWith("@anoma.ly")) {
         if (Resource.App.stage !== "production" && !email.endsWith("@anoma.ly")) {
+          throw new Error("Invalid email")
         }
         }
 
 
         // Get account
         // Get account