Skip to content

Commit a9cd2ff

Browse files
author
danmontgomery
committed
Merge branch 'master' of github.com:danmontgomery/codeigniter-bitauth
2 parents 51d86c5 + e3acb9c commit a9cd2ff

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

application/libraries/Bitauth.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,14 +702,18 @@ public function update_user($id, $data)
702702
}
703703
}
704704

705-
if(isset($data['password']))
705+
if(isset($data['password']) AND $data['password'] != '')
706706
{
707707
$new_password = $this->hash_password($data['password']);
708708

709709
$data['password'] = $new_password;
710710
$data['password_last_set'] = $this->timestamp();
711711
}
712-
712+
else
713+
{
714+
unset($data['password']);
715+
}
716+
713717
$this->db->trans_start();
714718

715719
if( ! empty($data))

0 commit comments

Comments
 (0)