jakob215180
Member
- Aug 7, 2013
- 113
- 4
I am trying to convert from UberCMS to RevCMS, and I read the tutorial, but theres no hash secret in my ubercms config.!?
$config['Site']['www'] = "url to site";
$config['Site']['hash_secret'] = "PUTHASHERE";
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "PW";
$config['MySQL']['database'] = "DB";
$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "SERVERSIP";
$config['MUS']['port'] = 21;
?>
final public function hashed($password)
{
return md5($password);
}
final public function hashed($password)
{
return sha1($password);
}
xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh
final public function hashed($password)
{
return sha1($password);
}
final public function hashed($password)
{
return sha1($password . "PUTHASHHERE");
}
Doesnt work... Please someone helpGood afternoon Jakob. Re-reading my previous posts, I defiantly should of went to bed earlier lol.
RevCMS is what I'm using, so my knowledge of UberCMS is little to none, but seeing as no one else has replied I'll explain further.
Okay so lets get this problem resolved. Ignore all my previous posts.
RevCMS and UberCMS are hashed differently.
RevCMS used Md5. UberCMS uses sha1.
You're going to need to change RevCMS to read sha1 hashs instead of Md5.
First off try just using this hash code and see what happens.
If that isn't working, delete it and save the file as it was before.Code:xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh
Second try this
1. In your database, find the user table and copy the password hash from your account.
2. In class.core.php of RevCMS you will see this
Change that toCode:final public function hashed($password) { return sha1($password); }
Code:final public function hashed($password) { return sha1($password . "PUTHASHHERE"); }
Or just register a new account and see if that works lol.