Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

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

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

Hi Mark -

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

Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

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

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

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

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

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.

Mark Wong
Posts: 0
Joined: Sat Feb 14, 2015 7:47 am

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

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

Return to “Issues”