用openfire服务器注册的用户,忘记密码找回的功能怎么实现?
现有的smack API中 有修改密码的方法:AccountManager.changePassword
public void changePassword(String newPassword)
但是,此方法只能在已经登录并建立连接的情况下才可以用:
Changes the password of the currently logged-in account. This operation can only be performed after a successful login operation has been completed. Not all servers support changing passwords; an XMPPException will be thrown when that is the case.
所以,有什么好办法实现找回用户密码的功能?谢谢!