Version 0.7.4 - Ajout de la vérification du CLP
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user