Password Reset, sti...
 
Notifications
Clear all

Password Reset, still accepts old password

9 Posts
2 Users
0 Reactions
1,002 Views
 jCan
(@jcan)
Posts: 23
Eminent Member
Topic starter
 

 Hello

I'm receiving the email with new password but I still can only log in with the old one. What am I over looking?unsure_png

 
Posted : 03/07/2015 11:12 pm
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

It's not a bug, that's how it works: ResetPassword sets an authorization code to change the password that you will then pass to ChangePassword, but of course ResetPassword does not invalidate the current password itself (as it is in every "reset password" around there).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 04/07/2015 12:22 am
 jCan
(@jcan)
Posts: 23
Eminent Member
Topic starter
 

True, I understand that but the new code I get doesnt log the user in. That's the issue.

Sorry for not making that clear.

 
Posted : 04/07/2015 1:46 am
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

Mmh... Will get a look at Monday.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 04/07/2015 3:45 pm
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

I tried and it works as expected:

// Set a "change password auth code" sent by email to the user
User.ResetPassword("aa", (bool success, string error) => {
   Debug.Log("Success: " + success);
});

// After received the code, set a new password
User.ChangePassword(0, "aa", "FMggX", "newpassword", (bool success, string error) => {
   Debug.Log("Success: " + success);
});

Are you doing this?

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 07/07/2015 1:35 pm
 jCan
(@jcan)
Posts: 23
Eminent Member
Topic starter
 

Hey, terribly sorry for the late response. 

I did overlook the User.ResetPassword, I am a bit new to some of this but I got it to work. 

 

Quick question, I know how to upload a file using UserFile and I can load the file properly, but, how do access its content? Or should I be downloading it via its URL? 

Any info on that would be appreciated, again, sorry for the noob questions

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

Yes you need to download the URL.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 09/07/2015 8:05 pm
 jCan
(@jcan)
Posts: 23
Eminent Member
Topic starter
 

This is the error I get when I try to download:

<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /public_html/upload/2015/07/09/386b70d4583da5bdc75ca55efe02bbb8.dat was not found on this server.</p>

I can clearly see the file on the server though, is this a permissions error? or is do i need to set the eShareType?

 

Thank you for the quick response.

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

No it seems a misconfiguration of your URL_ROOT setting in config.php, as it's written in the comment right above the define it should be the absolute URL to the Combu folder (for example if you installed in /combu then it should be: /combu/).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 09/07/2015 8:52 pm
Share: