VirtualMailManager/cli/__init__.py
branchv0.6.x
changeset 417 8209da83e256
parent 366 d6573da35b5f
child 568 14abdd04ddf5
equal deleted inserted replaced
416:f32b323fd347 417:8209da83e256
    86                            VMM_TOO_MANY_FAILURES)
    86                            VMM_TOO_MANY_FAILURES)
    87         clear0 = getpass(prompt=readp_msg0)
    87         clear0 = getpass(prompt=readp_msg0)
    88         clear1 = getpass(prompt=readp_msg1)
    88         clear1 = getpass(prompt=readp_msg1)
    89         if clear0 != clear1:
    89         if clear0 != clear1:
    90             failures += 1
    90             failures += 1
    91             w_err(0, _(u'Sorry, passwords do not match'))
    91             w_err(0, _(u'Sorry, passwords do not match.'))
    92             continue
    92             continue
    93         if not clear0:
    93         if not clear0:
    94             failures += 1
    94             failures += 1
    95             w_err(0, _(u'Sorry, empty passwords are not permitted'))
    95             w_err(0, _(u'Sorry, empty passwords are not permitted.'))
    96             continue
    96             continue
    97         mismatched = False
    97         mismatched = False
    98     return clear0
    98     return clear0
    99 
    99 
   100 del _
   100 del _