Abhigyan Singh
Posts: 0
Joined: Sat Nov 01, 2014 9:01 am

Password Recovery

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...

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Password Recovery

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.

Abhigyan Singh
Posts: 0
Joined: Sat Nov 01, 2014 9:01 am

Password Recovery

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

Abhigyan Singh
Posts: 0
Joined: Sat Nov 01, 2014 9:01 am

Password Recovery

Please check on my question!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Password Recovery

Hello!

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Password Recovery

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.

Abhigyan Singh
Posts: 0
Joined: Sat Nov 01, 2014 9:01 am

Password Recovery

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 ?

Abhigyan Singh
Posts: 0
Joined: Sat Nov 01, 2014 9:01 am

Password Recovery

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.. :)

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Password Recovery

Hi Abhigyan,

Thanks for your update. Glad it works.

Regards.

Vinny B
Posts: 0
Joined: Fri Aug 22, 2014 2:22 pm

Password Recovery

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?

Return to “Issues”