See http://forum.ragezone.com/f353/revcm...6/#post8127124 for extensive information about this issue.
Printable View
See http://forum.ragezone.com/f353/revcm...6/#post8127124 for extensive information about this issue.
Another easy fix is using this 2 query's:
PS YOU DONT NEED TO FIX THIS IF YOU HAVE A SECKEY! (Why number 1 because you never can hash something with md5 and get 1 as result :P md5 is always more as 10+ charactersPHP Code:ALTER TABLE `users` MODIFY COLUMN `seckey` DEFAULT '1234';
Update users set seckey = '1';
if the first one is not working use this one:
ALTER TABLE `users`
MODIFY COLUMN `seckey` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '1234' ;
Edit ---
updated the query's
Peaple just reaplace
Heres what you need to do to fix it with methode 1
search:
Replace it with:PHP Code:final public function forgotten()
{
global $template, $_CONFIG, $core;
if(isset($_POST['forgot']))
{
$template->form->setData();
unset($template->form->error);
if($this->nameTaken($template->form->for_username))
{
if(strlen($template->form->for_password) > 6)
{
if($this->getInfo($this->getID($template->form->for_username), 'seckey') == $core->hashed($template->form->for_key))
{
$this->updateUser($this->getID($template->form->for_username), 'password', $core->hashed($template->form->for_password));
$template->form->error = 'Account recovered! Go <b><a href="index">here</a></b> to login!';
return;
}
else
{
$template->form->error = 'Secret key is incorrect';
return;
}
}
else
{
$template->form->error = 'Password must have more than 6 characters.';
return;
}
}
else
{
$template->form->error = 'Username does not exist';
return;
}
}
}
thats the only thing <_< what you need to editPHP Code:final public function forgotten()
{
}
maybe some rep for me and Jamal because we fixed it?
You sir, are a fucking legend. Big like from me and rep.
Even if I don't use RevCMS , this is very usefull for those that aren't able to fix this ;)
Nice release dude (y) !
Please don't ask help in this thread. Follow the steps provide and if not working properly either contact the OP or post in the Habbo Hotel Help section here: http://forum.ragezone.com/f333
Keep in mind anyone breaking the rules will get warned and / or infracted.
app\interfaces\interface.users.php
Delete
public function forgotten();
ALTER TABLE users ADD COLUMN seckey VARCHAR( '999' );
Update users set seckey = '1';
fixed
No shit sherlock..
its not that we already said that 4 times in this theard... @ImNotSatan under me
If you delete the function then you delete all of the forgot shit.. because you otherwise get errors
Emptying does nothing to the cms because it just returns nothing Just the 404 page.
If I run the query I get this error
[SQL]ALTER TABLE `users` MODIFY COLUMN `seckey` DEFAULT '1234';
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DEFAULT '1234'' at line 1
Code:ALTER TABLE `users` ADD `seckey` VARCHAR(999) NOT NULL
didn't help.
[SQL]ALTER TABLE `users` ADD `seckey` VARCHAR(999)
[Err] 1060 - Duplicate column name 'seckey'