Matzn Posted March 11, 2023 Share Posted March 11, 2023 Hi all, i´ve installed a clear pw 3.0.210, but i can´t login to panelpage. A js function redirect to a endless loop. I don´t found the cause. Since i have several working pw installations (older versions) on the same server, i think i only need some settings. [url deleted] But what is wrong? Link to comment Share on other sites More sharing options...
Matzn Posted March 13, 2023 Author Share Posted March 13, 2023 I found some "special" on ProcessLogin.js #login_start is setting by php on server and ts is build by javascript on client. If the time on the server is much older than the time on the client, for example more 300 seconds, you get endless reloading. var startTime = parseInt($('#login_start').val()); // GMT/UTC var maxSeconds = 300; // max age for login form before refreshing it (300=5min) // force refresh of login form if 5 minutes go by without activity var watchTime = function() { var ts = Math.floor(new Date().getTime() / 1000); var elapsedSeconds = ts - startTime; if(elapsedSeconds > maxSeconds) { window.location.href = './?r=' + ts; } }; 1 Link to comment Share on other sites More sharing options...
Peter Knight Posted April 15 Share Posted April 15 Hi @Matzn Was this referring to the /processwire/ manager login? I just had a similar issue and it was caused by my server having an incorrect time (-1 hour). Link to comment Share on other sites More sharing options...
Matzn Posted April 19 Author Share Posted April 19 On 4/15/2024 at 10:15 AM, Peter Knight said: Hi @Matzn Was this referring to the /processwire/ manager login? Hallo @Peter Knight Yes, it was referring to the /processwire/ manager login. I'm a bit surprised, because I thought it was already fixed. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now