equal
deleted
inserted
replaced
439 elif ctx.argc < 4: |
439 elif ctx.argc < 4: |
440 password = None |
440 password = None |
441 else: |
441 else: |
442 password = ctx.args[3] |
442 password = ctx.args[3] |
443 gen_pass = ctx.hdlr.user_add(ctx.args[2].lower(), password) |
443 gen_pass = ctx.hdlr.user_add(ctx.args[2].lower(), password) |
444 if gen_pass: |
444 if ctx.argc < 4 and gen_pass: |
445 w_std(_(u"Generated password: %s") % gen_pass) |
445 w_std(_(u"Generated password: %s") % gen_pass) |
446 |
446 |
447 |
447 |
448 def user_delete(ctx): |
448 def user_delete(ctx): |
449 """delete the specified user""" |
449 """delete the specified user""" |