Hello,
When trying to reset a password with a reset code, we get the error: "User is not logged in". I don't understand what this means since clearly the user can't be logged in if they need to reset their password. The code I use for this is:
User.ChangePassword(0, resetUsernameField.text, resetCodeField.text, resetPasswordField.text, (bool success, string error) => {
if (success){
//Do login stuff
} else {
Debug.LogError("Error resetting password: " + error);
}
});
May be your user didn't activate his account yet before trying to change password? It seems the only situation when you could get that error in ChangePassword, anyway probably there's no need to double check IsLogged so you can edit /users.php and comment the lines 606, 623 and 624 (basically there shouldn't be the "if" statement for IsLogged) and leave only the code that you see inside the statement "if ($LoggedAccount->IsLogged()) { .. }" at line 607.
FRANCESCO CROCETTI @ SKARED CREATIONS