Page 1 of 1

why the auto-login code is not working?

Posted: Thu Jan 15, 2015 5:18 pm
by AC

Hi, I looked this post https://getsatisfaction.com/apperyio/... and used the login service code for auto-login.

var login = localStorage.getItem("login");
var pass = localStorage.getItem("pass");
if(login)
loginService.execute({data: {username: login, password: pass} });

I indeed had the login and password variables stored in my lsv. but I still cant skip the login page. The worse thing is if I use this auto-login code in pageshow event, I even cant navigate to the page with the right login/password information.

Image

Image


why the auto-login code is not working?

Posted: Fri Jan 16, 2015 7:08 am
by Evgene Karachevtsev

Hello AC,

Unfortunately custom JS code is outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about it: http://appery.io/services/#Advisory_Pack.
You may also check for the errors in the browser console and try to debug your code: http://devcenter.appery.io/documentat...