summaryrefslogtreecommitdiffstats
path: root/py-bin
diff options
context:
space:
mode:
authoralice <alice@immerda.ch>2012-08-31 14:41:53 +0200
committeralice <alice@immerda.ch>2012-10-19 15:20:06 +0200
commit2b47c309cb58d4f7257456245f5a73673f281c73 (patch)
tree39724227f07f498115db184149e2e54f1954c42e /py-bin
parentc03748ed544d6229f8d903642c926ac23fe33b8f (diff)
change password (of primary jid) works
Diffstat (limited to 'py-bin')
-rw-r--r--py-bin/jabberman.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/py-bin/jabberman.py b/py-bin/jabberman.py
index c187db4..082fd3c 100644
--- a/py-bin/jabberman.py
+++ b/py-bin/jabberman.py
@@ -317,19 +317,13 @@ class JabberManager:
return (False, "Zugriff verweigert.")
user_id = self.current_user.email
- ok, status = self.jadb.change_password(user_id, password)
+ ok, status = self.jadb.change_primary_jid_password(user_id, password)
if ok:
self.__set_session(user_id, password = password)
else:
self.__clear_session()
return (False, status)
- for jabber_id in self.current_user.get_account_list():
- acc = JabberAccount(jabber_id)
- #if not self.ejctl.change_password(acc.user, acc.server, password):
- # msg = "Konnte Jaber Passwort fuer %s nicht setzen." % acc.get_jabber_id()
- # return (False, msg)
-
return (True, "Passwort erfolgreich geaendert.")
def is_acceptable_password(self, password, password2):