Version 0.7.4 - Ajout de la vérification du CLP
This commit is contained in:
parent
b0e61fc7f8
commit
2046a89c79
20
README.md
20
README.md
@ -31,7 +31,7 @@
|
||||
|
||||
**Users V2**
|
||||
> - Ajout des permissions
|
||||
> - Handle Ban Case
|
||||
> - Autoriser uniquement le CLP a controler BOT
|
||||
|
||||
**Improvements**
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
<hr>
|
||||
|
||||
### Subsonics - Web - 0.8.0
|
||||
- **Adds :** *Alerts, Playlist Share, See Who is Online | Edit playlist picture | Tooltip*
|
||||
- **Adds :** *Alerts, Playlist Share, Edit playlist picture | Tooltip*
|
||||
#### Details
|
||||
|
||||
**Alerts**
|
||||
@ -52,9 +52,6 @@
|
||||
|
||||
> - Envoyer des playlist avec la liste des utilisateurs
|
||||
|
||||
**See Who is Online**
|
||||
|
||||
> - Ajouter une petite liste des gens connectés actuellement
|
||||
|
||||
**Edit playlist picture**
|
||||
|
||||
@ -68,6 +65,19 @@
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
### Subsonics - Web - 0.9.0
|
||||
- **Adds :** *Home Menu V2*
|
||||
#### Details
|
||||
|
||||
**Home Menu V2**
|
||||
|
||||
> - Ajouter une petite liste des gens connectés actuellement
|
||||
> - Ajouter les radios
|
||||
> - Ajouter le Changelog
|
||||
|
||||
<hr>
|
||||
|
||||
### Subsonics - Web - 1.0.0
|
||||
- **Adds :** *Bugs Fixes & Trailer | Add Playlist from Youtube*
|
||||
#### Details
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "subsonics-web",
|
||||
"author": "Raphix",
|
||||
"version": "0.7.3",
|
||||
"version": "0.7.4",
|
||||
"nodemonConfig": {
|
||||
"ext": "js, html",
|
||||
"ignore": [
|
||||
|
@ -77,7 +77,11 @@ module.exports.getDiscordUser = function (code, session) {
|
||||
|
||||
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 {
|
||||
|
@ -56,7 +56,11 @@ router.get('/redirect', function(req, res, next) {
|
||||
|
||||
res.redirect('/login?error=NOT_IN_BETA')
|
||||
|
||||
} else {
|
||||
} else if(error == "NOT_IN_CLP") {
|
||||
|
||||
res.redirect('/login?error=NOT_IN_CLP')
|
||||
|
||||
} else {
|
||||
|
||||
res.redirect('/login?error=CANCEL_LOGIN')
|
||||
|
||||
|
@ -37,7 +37,7 @@ router.get('/', function(req, res, next) {
|
||||
|
||||
}
|
||||
|
||||
if(req.query.error == "IS_NOT_IN_CLP") {
|
||||
if(req.query.error == "NOT_IN_CLP") {
|
||||
|
||||
error = "<p style='color:red; margin-bottom: 0.5vw !important;'>Que fais-tu là ? Seul les membres du CLP peuvent contrôler le Bot</p>"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user