mirror of
https://github.com/hackclub/nest.git
synced 2025-07-06 02:26:01 +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",
|
redirect: "follow",
|
||||||
})
|
})
|
||||||
).json()).result;
|
).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"]
|
const acceptableResponses = ["verified_eligible", "verified_but_over_18"]
|
||||||
if (
|
if (
|
||||||
!acceptableResponses.includes(verificationResponse1) &&
|
!acceptableResponses.includes(verificationResponse1)
|
||||||
!acceptableResponses.includes(verificationResponse2)
|
|
||||||
) {
|
) {
|
||||||
await client.views.open({
|
await client.views.open({
|
||||||
trigger_id: body.trigger_id,
|
trigger_id: body.trigger_id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue