示例#1
0
 public function updatePassword($username, $newPassword)
 {
     $this->database->where(self::COLUMN_NAME . " = ?", $username)->update(array(self::COLUMN_PASSWORD_HASH => Passwords::hash($newPassword)));
 }