Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Login Script to match Username/Password in MySQL database table

Could you check variable data on the success event?
Please add JS code below to get it's value:

console.log(JSON.stringify(data));

and provide us that value from the console (for two cases: user exists and doesn't exist)

Ed
Posts: 0
Joined: Wed May 13, 2015 6:14 pm

Login Script to match Username/Password in MySQL database table

Hello again,

Under Success Event, I would like to Map the sessionToken (under Service Response) to the userSessionToken (under Local Storage) but the sessionToken is not appearing under Service Response.

How can I get the MySQL database to return a sessionToken so I can map it with Local Storage? Thank you in advance.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Login Script to match Username/Password in MySQL database table

It is impossible to create sessionToken with plain MySQL. It is a server's feature, so you have to do it with some server's scripts.

Ed
Posts: 0
Joined: Wed May 13, 2015 6:14 pm

Login Script to match Username/Password in MySQL database table

Thanks for the clarification Sergiy. Can you please provide some guidance as to where I can find this script and description of script and steps to take? The database is running on a Linux Server with Apache, PHP, mySQL, Perl. Thank you.

Ed
Posts: 0
Joined: Wed May 13, 2015 6:14 pm

Login Script to match Username/Password in MySQL database table

Hello,

Just following up on my question above. Thank you.

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

Login Script to match Username/Password in MySQL database table

This question is not related to Appery.io platform, please search online for appropriate solution.

Jeffry Reed
Posts: 0
Joined: Sun Aug 14, 2016 3:59 pm

Login Script to match Username/Password in MySQL database table

Hello Ed,

Did you figure out to how to authenticate on user/password in remote DB? If so, could you share the scripts and process?

thanks,
Jeff

Return to “Issues”