Open GoogleCodeExporter opened 9 years ago
if my password is '1234567890'. Sorry
Original comment by a.tequ...@gmail.com
on 20 Aug 2011 at 8:19
my solution is add in YumUser.php
public function beforeSave() {
if ( isset($this->password) && ($this->password_changed) ) {
$this->password = YumUser::encrypt($this->password);
}
return parent::beforeSave();
}
and in the setPassword function comment this line
//$this->password = YumUser::encrypt($password);
Finally i use setPassword function to assign the password.
Is it a good solution?
Best regards.
Original comment by a.tequ...@gmail.com
on 21 Aug 2011 at 7:48
Original issue reported on code.google.com by
a.tequ...@gmail.com
on 20 Aug 2011 at 8:18