Version 0.6.1 - Ajout du clear token
All checks were successful
Neutral/pipeline/head This commit looks good
All checks were successful
Neutral/pipeline/head This commit looks good
This commit is contained in:
@ -1073,6 +1073,17 @@ class User {
|
||||
const returnInfo = new TextResponse(`${this.username}_returninfo`)
|
||||
|
||||
const editPermissions = new Array()
|
||||
|
||||
editTokensButton.addEventListener("click", () => {
|
||||
const request = post(`US_CLEAR_TOKENS`, this.username)
|
||||
request.then((answer) => {
|
||||
if(answer == "NO_TOKENS") {
|
||||
returnInfo.err("Aucun token n'a été généré pour cet utilisateur")
|
||||
} else {
|
||||
returnInfo.info("Les tokens ont été éffacés avec succès")
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
editPermissions.push(getID(`${this.username}_perm_FILES_EXPLORER`))
|
||||
|
Reference in New Issue
Block a user