Version 0.7.4 - Ajout de la vérification du CLP

This commit is contained in:
Raphix
2023-09-06 21:51:49 +02:00
parent b0e61fc7f8
commit 2046a89c79
5 changed files with 28 additions and 10 deletions

View File

@ -76,8 +76,12 @@ module.exports.getDiscordUser = function (code, session) {
}).then(resp2 => resp2.json()).then(userInfo => {
var user = {}
if(typeof userInfo.user == "undefined") {
if(typeof userInfo.joined_at == "undefined") {
reject("NOT_IN_CLP")
} else if(typeof userInfo.user == "undefined") {
reject("MIGRATE_ACCOUNT_ONLY")
} else {