Frank 5 bulan lalu
induk
melakukan
4663ea5faa
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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 (Resource.App.stage !== "production" && !email.endsWith("@anoma.ly")) {
+          throw new Error("Invalid email")
         }
 
         // Get account