Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Login form in the plugin tab…
Hi, in 4.5.7 or 4.6, log you into your Txp admin; open two bowser tabs, each one tagerting your admin, one in the Admin>Plugin tab and logout from the other. Once you are log out, try to disable a plugin from the other browser tab… The login form appears in the plugin row.
Offline
Re: Login form in the plugin tab…
NicolasGraph wrote #298691:
Once you are log out, try to disable a plugin from the other browser tab… The login form appears in the plugin row.
That’s to do with the AJAX call failing because you’ve logged out. Perhaps we should only serve the login screen from non-asynchronous requests and silently fail otherwise. Anyone any view on this? Is that a better paradigm?
Incidentally, you also get error messages appearing in place of the Yes/No text if you try to enable a plugin that has syntax errors in it. And you’ll maybe get the login Form in many places on the Write panel if you log out in a different tab prior to saving an already published article. And in the Sections panel if you toggle any of the Yes/No options. Anywhere there’s AJAX, really.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Offline
Re: Login form in the plugin tab…
etc wrote #298695:
Silent fail can be misleading, probably js redirection is better?
Sure, if you can figure out how to do it, be my guest.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Login form in the plugin tab…
Bloke wrote #298696:
Sure, if you can figure out how to do it, be my guest.
It could be just something like
if (!$txp_user) {
if(ps('app_mode') == 'async') {
echo '<script>window.location.assign("index.php")</script>';
exit(0);
} else {
doLoginForm($message);
}
in doAuth()
?
Offline
Offline
Offline
Offline
Re: Login form in the plugin tab…
etc wrote #298770:
Patched here, please test.
Much better now. That is the behaviour I always would have expected.
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
Offline
Re: Login form in the plugin tab…
Thanks for testing, gentlemen. I was a little hesitating between js alert
and confirm
, it’s yet time to choose.
Offline
Pages: 1