osclass / Osclass

With Osclass, get your own classifieds site for free. Build your own Osclass installation and start advertising real estate, jobs or whatever you want- in minutes!
http://osclass.org/
650 stars 342 forks source link

Impossible to log in administration after installation #1359

Closed ivangabriele closed 10 years ago

ivangabriele commented 10 years ago

Hi,

I tried to install it 2 times, tables are created and the admin user too with what I guess to be a sha1 encrypted password but it's impossible to log in administration.

conejoninja commented 10 years ago

Please check that your sessions are working

ivangabriele commented 10 years ago

Thank you for your answer :)

I just tested sessions, it works fine. There are 2 dotclears, 1 phpbb and 1 dokuwiki which work perfectly on the same hosting and database.

conejoninja commented 10 years ago

How did you installed it ? How is the user created? how are you trying to log in?

ivangabriele commented 10 years ago

I installed it via the OSC install system just following the normal steps I guess. I try to login by going to http://www.italieaparis.net/annonces/oc-admin/?page=login and typing my admin username (admin) and the auto-generated password I received by email.

I tried both by checking and not checking "Remember me" box

conejoninja commented 10 years ago

regenerate another password for the admin, or make sure the password and username is case sensitive

ivangabriele commented 10 years ago

The other problem is that I received the installation password by mail but I don't receive any new email when I'm trying to use "Forgot your password ?".

I checked the code and the password is encrypted in bcrypt ?

I can try to manually change it again in the database.

conejoninja commented 10 years ago

SHA1 should also works, newer passwords are encrypted with Bcrypt, but old ones are sha1

ivangabriele commented 10 years ago

I will run a step by step debug on the login in a few hours to understand where is the problem ;)

ivangabriele commented 10 years ago

Sorry I didn't get enough time to run tests before. Actually I forced BaseModel redirectTo() function to show me the asked url instead of redirecting, but when I'm logging in I'm still redirected after POST, which empeach me to show $_POST data and database results. Where is the redirection ?

ivangabriele commented 10 years ago

Indeed, the problem came from a bad htaccess configuration, hence the redirection problem.