Page 1 of 2

Password Recovery

Posted: Mon Nov 03, 2014 7:59 am
by Abhigyan Singh

I developed a page for the password recovery from the given example in appery dev center documentation....

But there is a problem i am stuck with, when a user enters a wrong secret code the app doesnt change the password, but still displays the alert that your password has been changed successfully... and an email is sent to user regarding successful password change.

I tried to put an else statement in server script for the checking of secret code and DB secret code but still its not working...


Password Recovery

Posted: Mon Nov 03, 2014 9:16 am
by Evgene Karachevtsev

Hello!

Could you please clarify, haven't you changed anything in the script of the server code? If the secret code does not coincide with that which is kept in the database neither letters nor an alert about successful change should not be.


Password Recovery

Posted: Mon Nov 03, 2014 11:31 am
by Abhigyan Singh

Yup I have not altered the script code, its all from the example...
Its showing alert for wrong secret code stating that "Password change successful." and sending the email about the same to user. Even if the security field is empty then also the success alert is display'd and email is sent to user.

Please check the application


Password Recovery

Posted: Mon Nov 03, 2014 6:44 pm
by Abhigyan Singh

Please check on my question!


Password Recovery

Posted: Mon Nov 03, 2014 6:59 pm
by Maryna Brodina

Hello!

We are sorry foe delay, working on your request and will publish update as soon as have any info.


Password Recovery

Posted: Tue Nov 04, 2014 1:18 am
by Yurii Orishchuk

Hi Abhigyan,

Please find in server code "Creating server script to change password"

following line:

pre

"text": (secretCode == secretCodeDB) ? "You have successfully changed your password" : "Secret code is wrong",

/pre

Regards.


Password Recovery

Posted: Tue Nov 04, 2014 4:59 am
by Abhigyan Singh

Where can you please be specific to the script there is in dev center application... ?
And how will that work and stop sending email to user ?


Password Recovery

Posted: Tue Nov 04, 2014 7:28 am
by Abhigyan Singh

Ok, I figured out my self added an else code for the check on XHRResponse.status value to display alert.

Kindly update the code in the given example because its not working.. :)


Password Recovery

Posted: Wed Nov 05, 2014 12:05 am
by Yurii Orishchuk

Hi Abhigyan,

Thanks for your update. Glad it works.

Regards.


Password Recovery

Posted: Sun Oct 18, 2015 3:01 pm
by Vinny B

Hello I am having the same issue and the code in the example is still wrong. I tried yurii suggestion and that does not work either. Is there a solution for this problem?