OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Password hash and config file toubles

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Password hash and config file toubles

Postby bjbqd » Tue Oct 12, 2010 10:27 am

Hi, I am running OJS 2.1.0.

First, I am trying to change the password of our administrative user by updating the admin user's password in our database. I see that in the config file it says the the encryption is sha1, but when I use sha1 in mysql on the original admin password it is not equal to the saved password hash in the database.

Also, I how do I call a variable in the config file which I added from a php file in the page directory.

Any help would be greatly appreciated.
bjbqd
 
Posts: 3
Joined: Thu Sep 23, 2010 8:57 am

Re: Password hash and config file toubles

Postby asmecher » Tue Oct 12, 2010 11:30 am

Hi bjbqd,

See http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=6582&start=0 for information on how password hashes are generated.

To get settings from the configuration file, use the Config::getVar function (see e.g. lib/pkp/classes/core/String.inc.php for an example).

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Password hash and config file toubles

Postby bjbqd » Tue Oct 12, 2010 12:11 pm

Thank you both solutions worked perfectly. I did not know the hash was made of username and password.
bjbqd
 
Posts: 3
Joined: Thu Sep 23, 2010 8:57 am


Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: No registered users and 1 guest