Don't return None on mismatched interactive passwords

This will cause the command to continue with no password set
at all which is not what we want.

We want to loop forever until the passwords match or the
user gives up and types ^D or ^C.

https://pagure.io/freeipa/issue/7383

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Rob Crittenden 2018-02-22 13:49:43 -05:00 committed by Christian Heimes
parent df99af4a68
commit 0aaee0a97f

View File

@ -627,7 +627,6 @@ class textui(backend.Backend):
return pw1
else:
self.print_error(_('Passwords do not match!'))
return None
else:
return self.decode(sys.stdin.readline().strip())