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:
12
bin/users.js
12
bin/users.js
@ -340,6 +340,12 @@ module.exports.User = class {
|
||||
this.register()
|
||||
}
|
||||
|
||||
clearTokens() {
|
||||
this.#sync()
|
||||
this.tokens = []
|
||||
this.register()
|
||||
}
|
||||
|
||||
#sync() {
|
||||
|
||||
for(var userGet of usersList.keys()) {
|
||||
@ -459,6 +465,12 @@ module.exports.editUser = function(settings) {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports.clearTokens = function(username) {
|
||||
|
||||
const user = this.fetchUsers().get(username)
|
||||
user.clearTokens()
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
Reference in New Issue
Block a user