We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51d86c5 + e3acb9c commit a9cd2ffCopy full SHA for a9cd2ff
1 file changed
application/libraries/Bitauth.php
@@ -702,14 +702,18 @@ public function update_user($id, $data)
702
}
703
704
705
- if(isset($data['password']))
+ if(isset($data['password']) AND $data['password'] != '')
706
{
707
$new_password = $this->hash_password($data['password']);
708
709
$data['password'] = $new_password;
710
$data['password_last_set'] = $this->timestamp();
711
712
-
+ else
713
+ {
714
+ unset($data['password']);
715
+ }
716
+
717
$this->db->trans_start();
718
719
if( ! empty($data))
0 commit comments