if ($new_pwd != $re_pwd){
set_ms('重复密码与新密码不相同!');
redirect($update_url,'location');
}
if ( ! $this->User_m->_valid_user_depart($depart) || ! $this->User_m->_valid_user_tel($tel) || ! $this->User_m->_valid_user_password($new_pwd)){
set_ms($this->User_m->_get_error());
redirect($update_url,'location');
}
if (! $this->User_m->_check_user($user_name, $old_pwd)){
set_ms('旧密码错误!');
redirect($update_url,'location');