Add cloud save data
This commit is contained in:
7 files changed
+333
-28
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ func GetAccountKeySaltFromUsername(username string) ([]byte, []byte, error) {
|
||||
return key, salt, nil
|
||||
}
|
||||
|
||||
func GetUUIDFromToken(token []byte) ([]byte, error) {
|
||||
func GetUuidFromToken(token []byte) ([]byte, error) {
|
||||
var uuid []byte
|
||||
err := handle.QueryRow("SELECT uuid FROM sessions WHERE token = ? AND expire > UTC_TIMESTAMP()", token).Scan(&uuid)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user