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

Forgot Password Tutorial Assistance

In line pre"where": encodeURIComponent('{"username": "' + username + '"}')/pre delete encodeURIComponent and extra space between : and "pre"where": '{"username":"' + username + '"}'/preMore information is here http://docs.appery.io/documentation/b... (Accessing predefined collections)

Christopher Herold
Posts: 0
Joined: Fri Jun 28, 2013 8:27 pm

Forgot Password Tutorial Assistance

Works! You are awesome Maryna! Thank you!

Christopher Herold
Posts: 0
Joined: Fri Jun 28, 2013 8:27 pm

Forgot Password Tutorial Assistance

One more question. When the email gets sent it comes out with '+' in place of all of the spaces. For instance, the email will read:

Your+recovery+code+is:+m0hcw683erk9.+Copy+and+paste+this+code+into+the+field+provided.

Where code is:
code
"text": "Your recovery code is: " + secretCode + ". Copy and paste this code into the field provided.",
/code

What do I have to do so that it reads normally in the email?

Christopher Herold
Posts: 0
Joined: Fri Jun 28, 2013 8:27 pm

Forgot Password Tutorial Assistance

I still can't resolve this issue with the spaces being replaced by plus-signs in the SendGrid email output.

I tried replacing the spaces with %20, but then the output to the email (SendGrid) was literal with Your%20recovery%20code ...

Any thoughts on this?

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

Forgot Password Tutorial Assistance

Hello! We're working on this issue at the moment, I'm sorry for delay.

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

Forgot Password Tutorial Assistance

Unfortunately it's a bug. We'll try to fix it as soon as possible.

Christopher Herold
Posts: 0
Joined: Fri Jun 28, 2013 8:27 pm

Forgot Password Tutorial Assistance

Thanks Maryna. I will look forward to its extermination! :)

George6656971
Posts: 0
Joined: Wed Feb 12, 2014 5:05 am

Forgot Password Tutorial Assistance

I had the same problem and fixed it by removing the encodeURIComponent. However, isn't that the wrong fix? Shouldn't I be adding encodeURIComponent to all my other calls, so that they get set in the database correctly?

Couldn't this cause a problem for some user that creates a username like "me&myshadow@myhouse" ?

Please respond, so that I know the right thing to do here for a real commercial app with thousands of unpredictable users.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Forgot Password Tutorial Assistance

Hi George,

This solution works for username like me&myshadow@myhouse. What is the problem?
Find more here please:
http://docs.appery.io/documentation/b...

Return to “Issues”