Actually added working password reset functions. Fixed views as required.

This commit is contained in:
2010-03-18 18:16:18 +00:00
parent 606ddd3cd7
commit 42588e1909
5 changed files with 37 additions and 2 deletions

View File

@@ -63,4 +63,12 @@ class JabberService(BaseService):
username, server = uid.split("@")
return self.ejctl.enable_user(server, username, password)
def reset_password(self, uid, password):
""" Reset the user's password """
if self.method == "xmpp":
return self.jabberadmin.resetpassword(uid, password)
else:
username, server = uid.split("@")
return self.ejctl.set_password(server, username, password)
ServiceClass = 'JabberService'