Browse Source

Automatically enable token once key is generated

master
NGnius 4 years ago
parent
commit
8ffd8c2862
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      sql_service.go

+ 1
- 0
sql_service.go View File

@@ -90,6 +90,7 @@ func newKeySql(player int64) (*Key, error) {
if tokenErr != nil {
return nil, tokenErr
}
newKey.Metadata = []byte{0xFE} // enable key with not extra permissions
return newKey, newKey.Commit()
}