Skip to content

Commit

Permalink
Fixed issue: Reset password not properly working
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Sep 30, 2012
1 parent af7e084 commit c5db23b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -4867,7 +4867,7 @@ function convertCSVRowToArray($string, $seperator, $quotechar)
function createPassword()
{
$pwchars = "abcdefhjmnpqrstuvwxyz23456789";
$password_length = 8;
$password_length = 12;
$passwd = '';

for ($i=0; $i<$password_length; $i++)
Expand Down
6 changes: 1 addition & 5 deletions application/models/User.php
Expand Up @@ -218,11 +218,7 @@ public function getID($fullname)
*/
public function updatePassword($uid,$password)
{
$data = array('password' => Yii::app()->db->quoteValue($password));
//$this->db->where(array("uid"=>$uid));
//$this->db->update('users',$data);
$this->updateByPk($uid, $data);

return $this->updateByPk($uid, array('password' => $password));
}

/**
Expand Down

0 comments on commit c5db23b

Please sign in to comment.