"You appear to have entered an invalid username or pass

Having trouble installing serendipity?
Post Reply
glancyguy
Posts: 3
Joined: Fri Feb 18, 2005 11:57 pm

"You appear to have entered an invalid username or pass

Post by glancyguy »

Hello Folks,

I am the administrator of over 20 Serendipity blogs. We love using it as our blogger. I ran into a problem. One of my users hosed up his user account. He could not login anymore. I blew away his old Serendipity directory, installed a new one, and configured it with all his old settings (including username and password). When I try to login with the username and password, I get the "You appear to have entered an invalid username or password". I have checked the mysql tables (serendipity_config) through the mysql admin interface and the password matches the one I am trying to use.

I read another post that talked about an MD5 hash being used to authenticate. Is there a table that needs to be updated or a .php file I need to change?

Thanks,

Darren
glancyguy
Posts: 3
Joined: Fri Feb 18, 2005 11:57 pm

Found: serendipity_authors

Post by glancyguy »

Hello again,

I found an md5 hash in the table:

serendipity_authors

Is this my problem? Is this the MD5 of my original install and it is not syncing with the md5 generated from the new post? I tried to see if an MD5 signature was passed anywhere in the http headers and I could not find one. It looks like (from the header) that the login/passwd is sent in clear text.

Any help is appreciated!

:)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Found: serendipity_authors

Post by garvinhicking »

Just reset the password for that user with a new password:

Code: Select all

UPDATE serendipity_authors SET password=MD5('newpassword) WHERE id = X
(SQL, where X is the author id of the user)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
glancyguy
Posts: 3
Joined: Fri Feb 18, 2005 11:57 pm

FIXED

Post by glancyguy »

Thanks!

For some reason, I had to set username in serendipity_authors to the username (it was blank). I also had to set the authorid back to 0 (it was set to 1) in the serendipity_authors. After that, the entries matched the tables in serendipity_config. I was able to login and recover the user. I am not sure if this was correct, but it did work.

Darren

:D
Post Reply