Hi, All
I can’'t change my password by using connection.changePassword(my Password)
I don’'t know how I can solve it, I m using XIFF API beta 4 …
I had a look at XIFFIAN but unfornately same thing here also…
Any IDEA.
Hi, All
I can’'t change my password by using connection.changePassword(my Password)
I don’'t know how I can solve it, I m using XIFF API beta 4 …
I had a look at XIFFIAN but unfornately same thing here also…
Any IDEA.
Hello,
I think it is problem in function changePassword in XMPPConnection.as
Please change as below
public function changePassword( newPassword:String ):Void
{
var passwdIQ:IQ = new IQ( server, IQ.SET_TYPE, XMPPStanza.generateID(“pswd_change_”), “changePassword_result”, this );
var ext:RegisterExtension = new RegisterExtension(passwdIQ.getNode());
//EXISTING ONE
//ext.username = getBareJID();
//MY MODIFICATION
ext.username = username;
ext.password = newPassword;
passwdIQ.addExtension(ext);
send( passwdIQ );
}
Existing function sends username including server name iq packet as
<iq id=“pswd_change_13” type=“set” to=“myserver”><query xmlns=“jabber:iq:register”><username>flash1@myserver</username><password>q</password></query></iq>
But Server expecting format is only username as below
<iq id=“pswd_change_13” type=“set” to=“myserver”><query xmlns=“jabber:iq:register”><username>flash1</username><password>q</password></query></iq>
If you modify it will works
Message was edited by: santhakumar
Message was edited by: santhakumar
Hello when i try to make some character as bod it insert * character inbetween. so i am posting message again
I think it is problem in function changePassword in XMPPConnection.as
Please change as below
public function changePassword( newPassword:String ):Void
{
var passwdIQ:IQ = new IQ( server, IQ.SET_TYPE, XMPPStanza.generateID(“pswd_change_”), “changePassword_result”, this );
var ext:RegisterExtension = new RegisterExtension(passwdIQ.getNode());
//EXISTING ONE
//ext.username = getBareJID();
//MY MODIFICATION
ext.username = username;
ext.password = newPassword;
passwdIQ.addExtension(ext);
send( passwdIQ );
}
Existing function sends username including server name iq packet as
If you modify it will works