mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 01:34:22 +01:00
wip: zen
This commit is contained in:
@@ -120,6 +120,10 @@ export default {
|
|||||||
|
|
||||||
if (!email) throw new Error("No email found")
|
if (!email) throw new Error("No email found")
|
||||||
|
|
||||||
|
if (Resource.App.stage !== "production" && !email.endsWith("@anoma.ly")) {
|
||||||
|
throw new Error("Invalid email")
|
||||||
|
}
|
||||||
|
|
||||||
let accountID = await Account.fromEmail(email).then((x) => x?.id)
|
let accountID = await Account.fromEmail(email).then((x) => x?.id)
|
||||||
if (!accountID) {
|
if (!accountID) {
|
||||||
console.log("creating account for", email)
|
console.log("creating account for", email)
|
||||||
|
|||||||
Reference in New Issue
Block a user