Posts: 65
Threads: 11
Joined: Apr 2012
Hi there,
I changed the User Name in the admin panel. After logout I can´t login again. The user name i enterd in the admin panel is like this 123ABC. When I use the "forgot password"-function the user name in the mail is 123abc. The login with the reset password failes with both user names. So I edited the > data > user.xml-File and changed the user name to 123ABC. But the problem still exists and the reset password mail still says the user name is 123abc.
The xml user file name is 123abc.xml.
Is there a way to set a complete new user login file?
Is there anyone who can help me?
Thank you
SoHo
Posts: 305
Threads: 15
Joined: Mar 2014
2015-05-29, 20:10:29
(This post was last modified: 2015-05-29, 20:11:22 by Tyblitz.)
Have a look at
admin/inc/login_functions.php
. After line 42, paste this:
Code:
echo 'Saved user: ' . $USR . ' - Entered user: ' . $userid;
echo '<br>Saved password: ' . $PASSWD . ' - Entered password: ' . $password;
At the top left corner of the page after hitting 'Login' and failing, you will see some texts.
Take a screen, save it, and remove those lines again.
Do you have different values for the 2 passwords or the 2 users (saved vs entered)
Posts: 6,266
Threads: 181
Joined: Sep 2011
You can't change usernames in gs. Are you using a plugin?
Posts: 65
Threads: 11
Joined: Apr 2012
Thank you,
but there is no additional text or message after hitting the Login.
I added the code after line 42
# pull the data from the user's data file
$data = getXML($user_xml);
$PASSWD = $data->PWD;
echo 'Saved user: ' . $USR . ' - Entered user: ' . $userid;
echo '<br>Saved password: ' . $PASSWD . ' - Entered password: ' . $password;
$USR = strtolower($data->USR);
and tried it as well at the end of the function, but nothing appeared on the Login-page.
Maybe you´ll have an other suggestion
Thank you
SoHo
Posts: 6,266
Threads: 181
Joined: Sep 2011
Probably because it redirects, you would need a
die();
after those lines
Are you using salts ?
We provide this user file for resolving login lockouts.
https://github.com/GetSimpleCMS/GS_unit_...s/user.xml
but you will have to disable your login salt if set in gsconfig
I am also not sure how you "changed" the username, as it is a readonly field.
Posts: 65
Threads: 11
Joined: Apr 2012
Now I could login with this new user.xml file. That´s great, thank you! Password is changed.
I don´t know how, but I could edit the user name this morning. Now the field is grey and inactive as it should be.
Best,
SoHo
Posts: 6,266
Threads: 181
Joined: Sep 2011
Do you have multi user plugin?
Posts: 65
Threads: 11
Joined: Apr 2012
Thank you, Shawn. Problem solved with the new user file. I don´t have a multiuser plugin.
Best,
SoHo
Posts: 1
Threads: 0
Joined: Jun 2015
Sounds like it might be a plugin messing with it.
Posts: 1
Threads: 0
Joined: Jun 2015