VirtualMailManager/cli/handler.py
branchv0.7.x
changeset 727 695426b49de0
parent 714 95252b15fffb
child 729 26a6231b9c6a
--- a/VirtualMailManager/cli/handler.py	Sat Feb 15 17:39:24 2014 +0000
+++ b/VirtualMailManager/cli/handler.py	Sat Feb 15 18:07:00 2014 +0000
@@ -87,7 +87,7 @@
         self._make_account_dirs(acc)
         return (None, password)[rand_pass]
 
-    def user_password(self, emailaddress, password=None):
+    def user_password(self, emailaddress, password=None, scheme=None):
         """Override the parent user_password() - add the interactive
         password dialog."""
         acc = self._get_account(emailaddress)
@@ -96,6 +96,6 @@
                            acc.address, NO_SUCH_ACCOUNT)
         if not isinstance(password, str) or not password:
             password = read_pass()
-        acc.modify('password', password)
+        acc.update_password(password, scheme)
 
 del _