首页 新闻 会员 周边

openfire 找回密码功能的实现

0
悬赏园豆:10 [待解决问题]

用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.
 
所以,有什么好办法实现找回用户密码的功能?谢谢!
我是小王的主页 我是小王 | 初学一级 | 园豆:94
提问于:2016-12-05 15:55
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册