From 8ffd8c2862a425414578a37dd79d1aa9e04e72fa Mon Sep 17 00:00:00 2001 From: NGnius Date: Sat, 7 Mar 2020 16:42:54 -0500 Subject: [PATCH] Automatically enable token once key is generated --- sql_service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sql_service.go b/sql_service.go index 3fa1b9a..a4d00ae 100644 --- a/sql_service.go +++ b/sql_service.go @@ -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() }