Add permission clear and list commands (#1715)

* Add permission clear and list commands

* Add Account clear permission
This commit is contained in:
jie65535
2022-08-27 19:46:27 +08:00
committed by GitHub
parent 656cb79b06
commit 32289e2d80
2 changed files with 25 additions and 4 deletions

View File

@@ -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));