diff --git a/globals/password_from_pid.go b/globals/password_from_pid.go index 3c25f38..7c1ec2e 100644 --- a/globals/password_from_pid.go +++ b/globals/password_from_pid.go @@ -12,17 +12,11 @@ import ( func PasswordFromPID(pid uint32) (string, uint32) { ctx := metadata.NewOutgoingContext(context.Background(), GRPCAccountCommonMetadata) - response, err := GRPCAccountClient.GetNEXData(ctx, &pb_account.GetNEXDataRequest{Pid: pid}) + response, err := GRPCAccountClient.GetNEXPassword(ctx, &pb_account.GetNEXPasswordRequest{Pid: pid}) if err != nil { globals.Logger.Error(err.Error()) return "", nex.Errors.RendezVous.InvalidUsername } - // * We only allow tester accounts for now - if response.AccessLevel < 1 { - globals.Logger.Errorf("PID %d is not a tester!", response.Pid) - return "", nex.Errors.RendezVous.AccountDisabled - } - return response.Password, 0 }