wiiu-chat-authentication/utility.go
2022-09-01 19:58:58 -04:00

14 lines
260 B
Go

package main
import nex "github.com/PretendoNetwork/nex-go"
func passwordFromPID(pid uint32) (string, uint32) {
user := getNEXAccountByPID(pid)
if user == nil {
return "", nex.Errors.RendezVous.InvalidUsername
}
return user["password"].(string), 0
}