<![CDATA[ Can't login to either my live or local site - My Forums]]> https://forums.modx.com/thread/?thread=104239 <![CDATA[Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site?page=2#dis-post-560612
It happens on my local machine as well as my live site - there is no way the local machine has been compromised. I did update some addons the other day. I'm running the latest version of modx

Nothing is showing in the php error log. I've tried reinstalling the latest version of modx over my local copy - no difference

Any ideas?]]>
markgurney Aug 10, 2018, 11:55 AM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site?page=2#dis-post-560612
<![CDATA[Re: Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site?page=2#dis-post-560674

On a side note: I think there should be some documentation though on the dangers of media sources and such scripts. It's very easy for a disgruntled former employee who has a limited access to a MODX installation, but full access to creating new media sources or access to the root of the site to go ahead and create a script like this, or modify the base path to access the servers root.]]>
lkfranklin Aug 11, 2018, 06:25 AM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site?page=2#dis-post-560674
<![CDATA[Re: Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560664 BobRay Aug 11, 2018, 05:35 AM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560664 <![CDATA[Re: Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560630
]]>
lkfranklin Aug 10, 2018, 03:20 PM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560630
<![CDATA[Re: Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560627 Quote from: lkfranklin at Aug 10, 2018, 12:36 PM
Sounds like a permissions issue.. You could try creating a new admin user to be sure.

On your local create a .php file called createUser.php and paste in this code:

https://pastebin.com/Y0DGrEME

Then go to your localhost/createUser.php to execute the script and then try logging in with the username tempadmin and password sc00byd00.

Hello LK, Did you write this? Have you ever used it successfully? It looks simultaneously extremely useful and rather terrifying!]]>
andytough Aug 10, 2018, 03:08 PM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560627
<![CDATA[Re: Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560621
I then did another install but uninstalled the gallery add-on before logging out - that seems to have cured the issue. Very strange...

Anyway - thank you all for your help!]]>
markgurney Aug 10, 2018, 01:22 PM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560621
<![CDATA[Re: Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560619
I can login ok after doing an over the top reinstall. However, if I logout and then login again, the issue comes back.

Nothing strange is showing in the access log and the php error log is empty (aside from the usual startup information)]]>
markgurney Aug 10, 2018, 01:08 PM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560619
<![CDATA[Re: Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560618

Have you tried reinstalling MODX over the top?]]>
lkfranklin Aug 10, 2018, 12:57 PM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560618
<![CDATA[Re: Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560616
Just tried that, no difference I'm afraid. The login page just reloads on submit straightaway]]>
markgurney Aug 10, 2018, 12:42 PM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560616
<![CDATA[Re: Can't login to either my live or local site]]> https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560615
On your local create a .php file called createUser.php and paste in this code:

https://pastebin.com/AkUx2yJC

Then go to your localhost/createUser.php to execute the script and then try logging in with the username **deleted** and password **.
deleted**]]>
lkfranklin Aug 10, 2018, 12:36 PM https://forums.modx.com/thread/104239/can-t-login-to-either-my-live-or-local-site#dis-post-560615