Browse Source

fixed sql error on `create_user()` with `use_password_hash`-config_var on __true__

develop
Raphael Jackstadt 9 years ago
parent
commit
e5029041ed
  1. 4
      application/libraries/Aauth.php

4
application/libraries/Aauth.php

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

Loading…
Cancel
Save