Skip to content

Commit

Permalink
fixed sql error on create_user() with use_password_hash-config_va…
Browse files Browse the repository at this point in the history
…r on __true__
  • Loading branch information
REJack committed Jul 11, 2016
1 parent bd91700 commit e502904
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,12 @@ public function create_user($email, $pass, $username = FALSE) {
}

// Update to correct salted password
$data = null;
if( !$this->config_vars['use_password_hash']){
$data = null;
$data['pass'] = $this->hash_password($pass, $user_id);
$this->aauth_db->where('id', $user_id);
$this->aauth_db->update($this->config_vars['users'], $data);
}
$this->aauth_db->where('id', $user_id);
$this->aauth_db->update($this->config_vars['users'], $data);

return $user_id;

Expand Down

0 comments on commit e502904

Please sign in to comment.