Skip to content

Commit

Permalink
Add hash in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve committed Oct 27, 2015
1 parent 325d9e6 commit c84fde5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion application/config/aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@

'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'];
Expand Down
2 changes: 1 addition & 1 deletion application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,7 @@ public function update_activity($user_id = FALSE) {
function hash_password($pass, $userid) {

$salt = md5($userid);
return hash('sha256', $salt.$pass);
return hash($this->config_vars['hash'], $salt.$pass);
}

########################
Expand Down

0 comments on commit c84fde5

Please sign in to comment.