Page 1 of 2

Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Fri Feb 20, 2015 4:52 pm
by Mark Wong

Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Fri Feb 20, 2015 5:05 pm
by Maryna Brodina

Hello!

Please provide more details regarding your problem.


Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Sat Feb 21, 2015 6:35 am
by Mark Wong

So The picture was the Server Code and I have tried to run it, however it just give me:
Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) - // Get the user with a given username from the database


Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Sat Feb 21, 2015 7:20 am
by Illya Stepanov

Hi Mark -

Have you tried to remove code /code from the lines of your code?


Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Sat Feb 21, 2015 8:22 am
by Mark Wong

I have delete code   /code from both Password Change and Send Email,
Password Change:
Image
Send Email:
Image
Image Image
However, I don't know why the secret codes were gone in the User collections (I create the Secret Code column)
And the email was sent according to SendGrid but I didn't get the email in my Inbox
Image


Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Sat Feb 21, 2015 8:29 am
by Mark Wong

Image
The test for Server Code.


Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Mon Feb 23, 2015 2:21 pm
by Mark Wong

Any Progress?


Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Mon Feb 23, 2015 3:15 pm
by Maryna Brodina

Not yet, sorry for delay.


Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Wed Feb 25, 2015 3:56 am
by Yurii Orishchuk

Hi Mark,

Please debug this code with adding "console.log('sometext')" in code.

Also i can see you have returned "user not found" in your script when test it.

Details: http://prntscr.com/69ipgi/direct

Regards.


Script SendEmail: SyntaxError: Unexpected token & ( @ 19 : 0 ) ->   // Get the user with a given username from the

Posted: Wed Feb 25, 2015 12:19 pm
by Mark Wong

Sorry, may you explain more detail?
When I put console.log('sometext') in the server code,
2/25/2015, 4:18:13 PM: sometext
2/25/2015, 4:18:13 PM: qz5f23issjor
Not sure what do you mean