hotfix(quetzal): remove email check

This commit is contained in:
kody 2025-06-28 11:52:56 -04:00 committed by GitHub
parent 8ebc934a92
commit b08cd7e0c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,17 +28,10 @@ export function register_user(app: Slack.App) {
redirect: "follow",
})
).json()).result;
const verificationResponse2 = (await (
await fetch("https://identity.hackclub.com/api/external/check?email="+ body?.user?.email, {
method: "GET",
headers: headers,
redirect: "follow",
})
).json()).result;
const acceptableResponses = ["verified_eligible", "verified_but_over_18"]
if (
!acceptableResponses.includes(verificationResponse1) &&
!acceptableResponses.includes(verificationResponse2)
!acceptableResponses.includes(verificationResponse1)
) {
await client.views.open({
trigger_id: body.trigger_id,