public function repassowrd(){ 
$users_model=M("Users"); 
$info = $users_model->where('id=1')->find();
echo $info['user_pass']; 
$passowrd='linxiaohong'; 
$data['user_pass']=sp_password($passowrd);
$users_model->where('id=1')->save($data); 
echo 'OK'; 
}

访问这个路径即可