Skip to content

Commit

Permalink
! should use tokenizer here, but for now a simple update in install
Browse files Browse the repository at this point in the history
  • Loading branch information
Spuds committed Jan 7, 2020
1 parent ea6606f commit 1a8aded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install/Install_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ private function action_adminAccount()
{
require_once(SUBSDIR . '/Auth.subs.php');

$incontext['member_salt'] = substr(md5(mt_rand()), 0, 4);
$incontext['member_salt'] = substr(sha1(mt_rand() . microtime()), 0, 16);

// Format the username properly.
$_POST['username'] = preg_replace('~[\t\n\r\x0B\0\xA0]+~', ' ', $_POST['username']);
Expand Down
2 changes: 1 addition & 1 deletion install/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ function checkLogin()
if ($valid_password)
{
$password = validateLoginPassword($_POST['passwrd'], '', $_POST['user'], true);
$password_salt = substr(md5(mt_rand()), 0, 4);
$password_salt = substr(sha1(mt_rand() . microtime()), 0, 16);

// Update the password hash and set up the salt.
require_once(SUBSDIR . '/Members.subs.php');
Expand Down

0 comments on commit 1a8aded

Please sign in to comment.