Hey,
Found this about 6 month ago but never bothered to make a thread as I didn't use the 'Security Key' option in RevCMS and didn't see much others but I have recently.
Have you used this before and noticed how all the hashes in the users table are the same for seckey? Well this simple fix will solve that (not previous hashes but only new ones once the fix is applied).
1) Open up 'app/class.users.php'.
2) Find the following: (Under final public function register())
3) If you have already customized this code then simply replace the following:
With:
If not you can replace the whole line with the following:
And then you're done, this simple error is now fixed.
Found this about 6 month ago but never bothered to make a thread as I didn't use the 'Security Key' option in RevCMS and didn't see much others but I have recently.
Have you used this before and noticed how all the hashes in the users table are the same for seckey? Well this simple fix will solve that (not previous hashes but only new ones once the fix is applied).
1) Open up 'app/class.users.php'.
2) Find the following: (Under final public function register())
PHP:
$this->addUser($template->form->reg_username, $core->hashed($template->form->reg_password), $template->form->reg_email, $_CONFIG['hotel']['motto'], $_CONFIG['hotel']['credits'], $_CONFIG['hotel']['pixels'], 1, $template->form->reg_figure, $template->form->reg_gender, $core->hashed($template->form->reg_key));
PHP:
$core->hashed($template->form->reg_key)
PHP:
$core->hashed($template->form->reg_seckey)
If not you can replace the whole line with the following:
PHP:
$this->addUser($template->form->reg_username, $core->hashed($template->form->reg_password), $template->form->reg_email, $_CONFIG['hotel']['motto'], $_CONFIG['hotel']['credits'], $_CONFIG['hotel']['pixels'], 1, $template->form->reg_figure, $template->form->reg_gender, $core->hashed($template->form->$core->hashed($template->form->reg_seckey)));
And then you're done, this simple error is now fixed.