Forum QuickConnect authenticate always allows login no matter what

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

authenticate always allows login no matter what

Postby tripknotix » May 6th, 2022, 7:20 pm

so i am following the example at
https://playerio.com/documentation/serv ... impleusers
it throws an error for "username", it says instead it needs "userId"
so i set it to userId.

however, it keeps allowing the user to login no matter what username they use or password they attempt to use.
Whats the deal here? Is password also incorrect?
how do i force it to check the simpleusers list to ensure the username and password are correct?

additionally it doesnt appear registering a new user actually creates that user, even though it returns successful.


this is the register code
PlayerIO.Authenticate(
yourPlayerioGameID, //Your game id
"public", //Your SimpleUsers connection id
new Dictionary<string, string> { //Authentication arguments
{"register", "true"}, //Register a user
{"userId", registerUsernameInput}, //Username - required
{"password", registerPasswordInput}, //Password - required
{"email", registerEmailInput}, //Email - optional
//{"gender", "female"}, //Example of custom data - Gender
//{"birthdate", "2014-04-22"}, //Example of custom data - Birthdate
},
null, //PlayerInsight segments
delegate (Client client) {
//Success!
},
delegate (PlayerIOError error) {
//Error registering.
//Check error.Message to find out in what way it failed,
//if any registration data was missing or invalid, etc.

Debug.Log("Error connecting: " + error.ToString());
}
);
tripknotix
Paid Member
 
Posts: 28
Joined: March 12th, 2010, 11:00 am

Return to QuickConnect