For some reason all of a sudden i am unable to register a new account. This was working but for some reason is not any more, any ideas?
private function createOpenfireAccount():void
{
Security.loadPolicyFile("http://" + ModelLocator.OPENFIRE_HOST +
":9090/crossdomain.xml");
var openfire:XMPPSocketConnection = new
XMPPSocketConnection();
openfire.server = ModelLocator.OPENFIRE_HOST;
openfire.username = null;
openfire.password = null;
openfire.connect("standard");
openfire.addEventListener(XIFFErrorEvent.XIFF_ERROR, function
onError(e:XIFFErrorEvent):void {
trace("\n\nError Event\n"); trace(e.errorCode);
trace(e.errorCondition);
trace(e.errorMessage);
trace(e.errorType);
openfire.disconnect();
});
openfire.addEventListener(IncomingDataEvent.INCOMING_DATA, function
onIncomingData(e:IncomingDataEvent):void { trace("\nIcoming Data\n" + e.data); });
openfire.addEventListener(ConnectionSuccessEvent.CONNECT_SUCCESS,
function onConnect(e:ConnectionSuccessEvent):void {
trace("\nRegistering new user...\n" +
username + "\n" + password + "\n" + email);
var registrationFields = {};
registrationFields.username = username;
registrationFields.password = password;
registrationFields.email = email;
registrationFields.nick = username;
openfire.sendRegistrationFields(registrationFields,null);
});
openfire.addEventListener(RegistrationSuccessEvent.REGISTRATION_SUCCESS,
function onReg(e:RegistrationSuccessEvent):void {
trace("Success");
Alert.show("Thanks for Signing up! You will recieve an
email with instructions on how to get started!", "Thank You");
openfire.disconnect();
});
stream:featuresDIGEST-MD5PLAINANONYM OUSCRAM-MD5</mech
anism>zlib</stream:features><
iq to=“openfire_host/1b89a88” type=“error” id=“reg_attempt_1” from=“openfire_host”>tabithaeasy123