Hi
i need any example for the use of User.Delete
with or without password .
Thanks
In both cases you need to pass the password for security reason:
User myUser = new User();
myUser.userName = "Nickname";
myUser.password = "Password";
myUser.Delete ((bool success, string error) => {
Debug.Log("Success: " + success + " -- Error: " + error);
});
// By local authenticated user
CombuManager.localUser.password = "Password";
CombuManager.localUser.Delete ((bool success, string error) => {
Debug.Log("Success: " + success + " -- Error: " + error);
});
// By using static method
User.Delete ("Username", "Password", (bool success, string error) => {
Debug.Log("Success: " + success + " -- Error: " + error);
});
FRANCESCO CROCETTI @ SKARED CREATIONS
Success: False -- Error: Username or Password invalid
UnityEngine.Debug:Log(Object)
i tray more time with many user name & when i look at SQL i found the password is encrypted to (81dc9bdb52d04dc20036dbd8313ed055) , i think this the error, so what the way to fix it?
Oh I see now, probably nobody used it recently.
Edit User.cs (static Delete, line 262):
form.AddField("Password", CombuManager.EncryptMD5(password));
This change will be added to the next update.
FRANCESCO CROCETTI @ SKARED CREATIONS
Success: False -- Error:
UnityEngine.Debug:Log(Object)
not working ,i think it's .php side
I have no issues with the above change, are you running latest 2.1.7? Can you send as private message the URL and secret key to try myself?
FRANCESCO CROCETTI @ SKARED CREATIONS
Success: True -- Error:
UnityEngine.Debug:Log(Object)
Ok its working fine now the line is 263
Thanks