pgstath / Sharp.Xmpp

Sharp.Xmpp is looking for a maintainer! Unfortunatelly I do not have currently the time needed to maintain the library. Luckily a small but vibrant community has evolved around Sharp.Xmpp. If you would like to be the project's maintainer please sent an email to pgstath@gmail.com. This should include issues, tickets and commits that you have done for Sharp.Xmpp or other similar project. Sharp.Xmpp is a multiplatform, Windows and Android, .NET XMPP client assembly.Sharp.Xmpp supports IM functionality & a variety of XMPP extensions, is simple and is extensively tested against Android Xamarin. It is a fork of the currently frozen excellent S22.Xmpp project. Sharp.Xmpp will be at the FOSSDEM 2016 Real time DevRoom!
Other
84 stars 51 forks source link

Problem in changing password/ how to make use of in-built registration for this purpose #47

Closed ismanoor closed 6 years ago

ismanoor commented 7 years ago

hi... I'm trying to change password of a user registered at openfire using sharp.xmpp but i couldn't find any direct method available for this purpose. whereas there are internal inbuilt-registration functionalities available like change password/register. Can you please help me how to use xmppclient object to change password

Thanks in advance!

ismanoor commented 7 years ago

@pgstath ???

akoepe commented 7 years ago

Hy! I downloaded the library and added a few lines...(Creators might have forgotten to add this one I don't know)

1.Open XMPPClient.cs 2.Search for the Register method 3.Create a copy of it 4.Call it ChangePassword, parameter should be a string, inside the method change the Register function to ChangePassword.

Should look like this:

public void ChangePassword(string NewPassword) { NewPassword.ThrowIfNull("callback"); inBandRegistration.ChangePassword(NewPassword); }

Now you can simply call this on a Connected!!! user and it will change the password.