Page 1 of 1

"You appear to have entered an invalid username or pass

Posted: Sat Feb 19, 2005 12:05 am
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

Found: serendipity_authors

Posted: Sat Feb 19, 2005 12:29 am
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!

:)

Re: Found: serendipity_authors

Posted: Sat Feb 19, 2005 10:26 am
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

FIXED

Posted: Mon Feb 28, 2005 7:10 am
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