Frank hai 5 meses
pai
achega
4663ea5faa
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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