PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost Bug Reports

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old June 13th, 2005, 07:56 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2004
Posts: 16
Admin login not recognised

This may be related to this problem:

cant login to reviews?

I've done a fresh install of 2.91, I've created all of my categories and uploaded the products. You can see it all here:

http://www.outdoor-equipment-review.com

Now, the problem is that if I try to log in as the admininstrator using the correct username and password it tells me that I'm not registered !

Sometimes I can then click on home and that redraws the page with the admin link in it but mostly it doesn't.

I've checked in the database and the username and password are set correctly, the cookie domain is also set correctly.

I've tried reading the cookie set by my domain. It looks ok - it stores the password correctly although it refers to a host rather than a domain.

Any ideas any one ?

I'm hoping to do some customisation to the site and launch it to 12,000 people later this week but can't as I cannot log in !

Thanks in advance

Phil
mtbwales is offline   Reply With Quote
Old June 14th, 2005, 07:01 AM   #2 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2004
Posts: 16
In the abscence of a response from tech support I've done some further digging around. It appears that the passwords should be stored in the database using md5 encryption when using the built in authentication.

Except that they aren't - as a result the user types the password into the login box and it automatically fails because this is md5'd and the compared to the stored password in the database (which isn't).

The 'sometimes works, sometimes doesnt' behaviour comes from the fact that when installing ReviewPost, the password cookie is set when the Admin user is set up. As long as you don't log out and the cookie doesn't expire you can still access all of the admin functions.

Once the cookie expires then you can't log back in . . . .

So, the next problem - I've imported in 12,000+ users, created passwords for them (and md5'd) them and set their usergroup but none of them can log in.

Any ideas why ?

Last edited by mtbwales; June 14th, 2005 at 07:08 AM.
mtbwales is offline   Reply With Quote
Old June 14th, 2005, 07:38 AM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Well I have seen this happen about 1 in a 50 installs with the password being passed plain not md5 although looking at the coding there is no explanation why.

All you can do for that admin login is change it manually or use the forgot password link. This only seems to be an install quirk sometimes as regular users register fine.


As far as your imported users my honest answer is I can only speculate. You imported users meaning you wrote some custom script to throw users into the reviewpost database. There could be several things wrong in this scenerio.

Are the stored passwords md5?

Where the usernames stored correctly in the database?

Did you assign them a usergroupid?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old June 14th, 2005, 04:29 PM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2004
Posts: 16
All I did was create an SQL file which took the usernames and email addresses from an ancient Postnuke install and then generated random passwords. Each user was inserted into RP like this:

INSERT INTO rp_users (userid, username, password, email, joindate) VALUES ('NULL', 'petersrice', ''password, 'email@yaddress', NOW());

I then did an update to convert all passwords to md5 like this:

UPDATE rp_users SET password=md5(password);

All passwords are stored as md5 versions, the usernames are correct and I've assigned a usergroup of 4. Is anything else used to authenticate a user such as an IP, registration date etc because that's all I can think of that's missing.
mtbwales is offline   Reply With Quote
Old June 14th, 2005, 04:59 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
How do the users know there random password?.

Obviously the issue here is the authentication of the password from what I am seeing. The only way to truly set things right at this point I would say is make a random password md5 like password and issue a mysql statement to update password to this password minus the admin user
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Old June 15th, 2005, 05:09 AM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2004
Posts: 16
Quote:
How do the users know there random password?.
The users will get their password when I mail out my next newsletter to them from my main website MTB-Wales.com. Their username is the sam on the main site. NB: the 'password' in the SQL statement above is random !

Quote:
The only way to truly set things right at this point I would say is make a random password md5 like password and issue a mysql statement to update password to this password minus the admin user
That's what I did - currnetly only the admin user can log in
mtbwales is offline   Reply With Quote
Old June 15th, 2005, 06:22 AM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2004
Posts: 16
Figured it out - initially I created random passwords and imported these into the rp_users table. I then did an update on each converting it to an md5 using the MySQL MD5 function. This yields a different MD5 hash to the PHP one.

In practice this means that although the users password is entered during the login process, and it's converted to the MD5 version by PHP, it won't match the MySQL'd MD5 version in the database. So the user can't log in !
mtbwales is offline   Reply With Quote
Old June 15th, 2005, 07:58 PM   #8 (permalink)
ncg
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 207
i was having this problem forever, i found the problem is that you might have fogotten to put your tables prefix into the settings. i forgot this everytime and i had endless problems and then i finally noticed that box in the setup and put the right data and was good to go problem free.

Last edited by ncg; June 15th, 2005 at 08:15 PM. Reason: fixed it
ncg is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
5.1 comments and returns not recognised sross Photopost Pro Bug Reports 0 June 11th, 2005 06:12 PM
I cannot login to Admin Big Kahuna Photopost Pro Installation & Upgrades 2 April 1st, 2005 04:09 AM
Can't login to the Admin CP rcsmith Photopost Pro Installation & Upgrades 11 March 23rd, 2005 10:47 AM
Help Please - Admin Login WeeMan Photopost Pro Installation & Upgrades 13 January 7th, 2005 08:09 PM
Admin login stopped working... backup admin does work... LittleBrother ReviewPost Installation & Upgrades 2 July 1st, 2004 03:58 AM


All times are GMT -5. The time now is 03:43 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0