Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
RevCMS BCRYPT
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Blasteh" data-source="post: 412471" data-attributes="member: 30540"><p>Hi,</p><p>Previously I was looking for this and I finally found someone that released it on a rival forum so I decided to post here.</p><p></p><p>Please note, if you already have a user(s) in your database I wouldn't suggest doing this, as they won't be able to login.</p><p></p><p><strong>Go to app/class.core.php and find this line:</strong></p><p>[PHP]final public function hashed($password)</p><p> {</p><p> return md5($password);</p><p> } [/PHP]</p><p></p><p>and change it to:</p><p>[PHP]final public function hashed($password)</p><p> {</p><p> return password_hash($password, PASSWORD_BCRYPT);</p><p> } [/PHP]</p><p><strong>Step 2, go to class.users.php and find something similar to:</strong></p><p>[PHP]final public function userValidation($username, $password) { global $engine; if($engine->num_rows("SELECT * FROM users WHERE username = '" . $username . "' AND password = '" . $password . "' LIMIT 1") > 0) { return true; } return false; } [/PHP]</p><p>then change it to:</p><p>[PHP]final public function userValidation($username, $password) { global $engine; if($engine->num_rows("SELECT * FROM users WHERE username = '" . $username . "' AND password = '" . $password . "' LIMIT 1") > 0) return password_verify($password); } [/PHP]</p></blockquote><p></p>
[QUOTE="Blasteh, post: 412471, member: 30540"] Hi, Previously I was looking for this and I finally found someone that released it on a rival forum so I decided to post here. Please note, if you already have a user(s) in your database I wouldn't suggest doing this, as they won't be able to login. [B]Go to app/class.core.php and find this line:[/B] [PHP]final public function hashed($password) { return md5($password); } [/PHP] and change it to: [PHP]final public function hashed($password) { return password_hash($password, PASSWORD_BCRYPT); } [/PHP] [B]Step 2, go to class.users.php and find something similar to:[/B] [PHP]final public function userValidation($username, $password) { global $engine; if($engine->num_rows("SELECT * FROM users WHERE username = '" . $username . "' AND password = '" . $password . "' LIMIT 1") > 0) { return true; } return false; } [/PHP] then change it to: [PHP]final public function userValidation($username, $password) { global $engine; if($engine->num_rows("SELECT * FROM users WHERE username = '" . $username . "' AND password = '" . $password . "' LIMIT 1") > 0) return password_verify($password); } [/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
RevCMS BCRYPT
Top