Page 2 of 2

Forgot Password Tutorial Assistance

Posted: Mon Feb 03, 2014 8:11 pm
by Maryna Brodina

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)


Forgot Password Tutorial Assistance

Posted: Mon Feb 03, 2014 8:20 pm
by Christopher Herold

Works! You are awesome Maryna! Thank you!


Forgot Password Tutorial Assistance

Posted: Mon Feb 03, 2014 8:32 pm
by Christopher Herold

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?


Forgot Password Tutorial Assistance

Posted: Tue Feb 04, 2014 5:13 pm
by Christopher Herold

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?


Forgot Password Tutorial Assistance

Posted: Tue Feb 04, 2014 7:06 pm
by Maryna Brodina

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


Forgot Password Tutorial Assistance

Posted: Tue Feb 04, 2014 7:28 pm
by Maryna Brodina

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


Forgot Password Tutorial Assistance

Posted: Tue Feb 04, 2014 7:56 pm
by Christopher Herold

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


Forgot Password Tutorial Assistance

Posted: Mon Apr 28, 2014 1:26 am
by George6656971

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.


Forgot Password Tutorial Assistance

Posted: Tue Apr 29, 2014 3:26 pm
by Kateryna Grynko

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