Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User name changed - login failed
#1
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
Reply
#2
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)
Reply
#3
You can't change usernames in gs. Are you using a plugin?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
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
Reply
#5
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.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#6
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
Reply
#7
Do you have multi user plugin?
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#8
Thank you, Shawn. Problem solved with the new user file. I don´t have a multiuser plugin.

Best,
SoHo
Reply
#9
Sounds like it might be a plugin messing with it.
Reply
#10
thanks
Reply




Users browsing this thread: 1 Guest(s)