mirror of
https://github.com/PretendoNetwork/wiiu-chat-authentication.git
synced 2026-04-24 15:16:52 -05:00
14 lines
260 B
Go
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
|
|
}
|