GetSimple Support Forum
User name changed - login failed - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: User name changed - login failed (/showthread.php?tid=7315)



User name changed - login failed - SoHo22 - 2015-05-29

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


RE: User name changed - login failed - Tyblitz - 2015-05-29

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)


RE: User name changed - login failed - shawn_a - 2015-05-29

You can't change usernames in gs. Are you using a plugin?


RE: User name changed - login failed - SoHo22 - 2015-05-29

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


RE: User name changed - login failed - shawn_a - 2015-05-29

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_tests/blob/master/data/users/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.


RE: User name changed - login failed - SoHo22 - 2015-05-30

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


RE: User name changed - login failed - shawn_a - 2015-05-30

Do you have multi user plugin?


RE: User name changed - login failed - SoHo22 - 2015-06-03

Thank you, Shawn. Problem solved with the new user file. I don´t have a multiuser plugin.

Best,
SoHo


RE: User name changed - login failed - blazon - 2015-06-07

Sounds like it might be a plugin messing with it.


RE: User name changed - login failed - akeldavetiye - 2015-06-14

thanks