mirror of
https://github.com/hackclub/nest.git
synced 2025-07-05 18:45:59 +00:00
hotfix(quetzal): remove email check
This commit is contained in:
parent
8ebc934a92
commit
b08cd7e0c1
1 changed files with 2 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue