VirtualMailManager/cli/subcommands.py
branchv0.6.x
changeset 361 971577b89d26
parent 345 f8d5c8bb8bce
child 362 c2e8eab2616d
--- a/VirtualMailManager/cli/subcommands.py	Mon Aug 09 19:39:55 2010 +0000
+++ b/VirtualMailManager/cli/subcommands.py	Tue Aug 10 01:02:21 2010 +0000
@@ -380,7 +380,9 @@
         password = None
     else:
         password = ctx.args[3]
-    ctx.hdlr.user_add(ctx.args[2].lower(), password)
+    gen_pass = ctx.hdlr.user_add(ctx.args[2].lower(), password)
+    if gen_pass:
+        w_std(_(u"Generated password: %s") % gen_pass)
 
 
 def user_delete(ctx):