Browse Source

Add hash in configuration

develop
Steve 10 years ago
parent
commit
c84fde5591
  1. 4
      application/config/aauth.php
  2. 2
      application/libraries/Aauth.php

4
application/config/aauth.php

@ -115,7 +115,9 @@ $config_aauth["default"] = array(
'verification' => false,
'verification_link' => '/account/verification/',
'reset_password_link' => '/account/reset_password/'
'reset_password_link' => '/account/reset_password/',
'hash' => 'sha256'
);
$config['aauth'] = $config_aauth['default'];

2
application/libraries/Aauth.php

@ -1145,7 +1145,7 @@ class Aauth {
function hash_password($pass, $userid) {
$salt = md5($userid);
return hash('sha256', $salt.$pass);
return hash($this->config_vars['hash'], $salt.$pass);
}
########################

Loading…
Cancel
Save