AC
Posts: 0
Joined: Wed Oct 08, 2014 8:53 pm

why the auto-login code is not working?

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

why the auto-login code is not working?

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

Return to “Issues”