mirror of
https://github.com/PretendoNetwork/super-mario-maker.git
synced 2026-09-26 09:56:33 -05:00
Hotfix 2 (electric boogaloo), initialize server accounts (#17)
This commit is contained in:
@@ -10,6 +10,11 @@ import (
|
||||
var AuthenticationServerAccount *nex.Account
|
||||
var SecureServerAccount *nex.Account
|
||||
|
||||
func InitAccounts() {
|
||||
AuthenticationServerAccount = nex.NewAccount(1, "Quazal Authentication", KerberosPassword)
|
||||
SecureServerAccount = nex.NewAccount(2, "Quazal Rendez-Vous", KerberosPassword)
|
||||
}
|
||||
|
||||
func AccountDetailsByPID(pid types.PID) (*nex.Account, *nex.Error) {
|
||||
if pid.Equals(AuthenticationServerAccount.PID) {
|
||||
return AuthenticationServerAccount, nil
|
||||
@@ -53,4 +58,4 @@ func AccountDetailsByUsername(username string) (*nex.Account, *nex.Error) {
|
||||
account := nex.NewAccount(pid, username, password)
|
||||
|
||||
return account, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user