Recover password us...
 
Notifications
Clear all

Recover password using email address instead of username?

7 Posts
2 Users
0 Reactions
644 Views
(@gecko64)
Posts: 82
Estimable Member
Topic starter
 

We would like to let players recover their username and password with their email address, instead of their username. Is there a way to do that? 

 
Posted : 11/09/2015 7:18 pm
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

Replace the constructor of CB_Account.php with this and you can use the email for any method that requires a Username:

censored for security, the change will be anyway added to the next update

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 11/09/2015 11:20 pm
(@gecko64)
Posts: 82
Estimable Member
Topic starter
 

Thanks very much! However, when we swap in this code, we get an error in Unity:  "Failed to get Combu server info” -- nothing else useful. Here is that section of the file. Did we do something wrong?

thanks

Dave

censored for security

 
Posted : 12/09/2015 1:36 am
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

May be you are missing a closing "}" for the function, from what I see there.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 12/09/2015 8:09 pm
(@gecko64)
Posts: 82
Estimable Member
Topic starter
 

Yeah, we had that in there before, but that didn't work, LogError, so took it out (for some reason, not sure now), and it also failed. So I put it back in (copied your original code actually) and get this:

Combu login error: 

UnityEngine.Debug:LogError(Object)
CombuLoginAndRegister:<Login>m__9(Boolean, String) (at Assets/0 Game Assets/Scripts/User Accounts/CombuLoginAndRegister.cs:113)
Combu.<Authenticate>c__AnonStoreyE6:<>m__5F(String, String) (at Assets/Combu/Scripts/User.cs:87)
Combu.<DownloadUrl>c__Iterator72:MoveNext() (at Assets/Combu/Scripts/CombuManager.cs:405)

 
Posted : 12/09/2015 8:30 pm
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

I don't know, what happens there but I'll send you my file privately because I'm not having issues with Authenticate.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 12/09/2015 8:33 pm
(@gecko64)
Posts: 82
Estimable Member
Topic starter
 

 Got the file -- and that works! Thanks! Dunno what I did wrong. 

 
Posted : 12/09/2015 8:41 pm
Share: