UberCMS, No Hash Secret! ??

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.!?
 

42u

New Member
Aug 19, 2013
14
0
Your config file should look like this. I am taking it as you're missing the second line.
PHP:
$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;
 
?>
 

42u

New Member
Aug 19, 2013
14
0
Oh sorry I am extremely tired. Going to go to bed after this post, so good luck and hope it helps.

In RevCMS locate class.core.php
Locate this
Code:
final public function hashed($password)
    {
        return md5($password);
    }


Replace it with this
Code:
final public function hashed($password)
    {
        return sha1($password);
    }

Go back to your UberCMS config that requests the hash, then replace it with the one in RevCMS config.
 

jakob215180

Member
Aug 7, 2013
113
4
Yes i wanna move from ubercms to revcms.. But theres something i have to do with the secret hash, but i have no secret hash in my config.

Nope it didnt have the hash thing
 

42u

New Member
Aug 19, 2013
14
0
Good 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.
Code:
xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh
If that isn't working, delete it and save the file as it was before.

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
Code:
final public function hashed($password)
{
return sha1($password);
}
Change that to
Code:
final public function hashed($password)
{
    return sha1($password . "PUTHASHHERE");
}

Or just register a new account and see if that works lol.
 

jakob215180

Member
Aug 7, 2013
113
4
Good 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.
Code:
xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh
If that isn't working, delete it and save the file as it was before.

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
Code:
final public function hashed($password)
{
return sha1($password);
}
Change that to
Code:
final public function hashed($password)
{
    return sha1($password . "PUTHASHHERE");
}

Or just register a new account and see if that works lol.
Doesnt work... Please someone help
 

Users who are viewing this thread

Top