serverDialog.userAuth(presence, listener);
ActionEvent event = future.waitActionEventWithoutException();
if(event.getEventType()==ActionEventType.SUCCESS){
this.updateLoginState(LoginState.SIPC_REGISGER_SUCCESS, null);
}else if(event.getEventType()==ActionEventType.FAILURE){
FailureEvent evt = (FailureEvent) event;
FailureType type = evt.getFailureType();
if(type==FailureType.REGISTER_FORBIDDEN){
throw new LoginException(LoginState.SIPC_ACCOUNT_FORBIDDEN); //帐号限制登录,可能存在不安全因素,请修改密码后再登录
}else if(type==FailureType.AUTHORIZATION_FAIL){
throw new LoginException(LoginState.SIPC_AUTH_FAIL); //登录验证失败
}else{