mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 08:56:04 +01:00
Add permission clear and list commands (#1715)
* Add permission clear and list commands * Add Account clear permission
This commit is contained in:
@@ -210,6 +210,10 @@ public class Account {
|
||||
return this.permissions.remove(permission);
|
||||
}
|
||||
|
||||
public void clearPermission() {
|
||||
this.permissions.clear();
|
||||
}
|
||||
|
||||
// TODO make unique
|
||||
public String generateLoginToken() {
|
||||
this.token = Utils.bytesToHex(Crypto.createSessionKey(32));
|
||||
|
||||
Reference in New Issue
Block a user