From 1936b8050e5ee7861996f370d2171b751f18c1fb Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Wed, 24 Aug 2011 18:10:22 -0400 Subject: Add option to only prompt once for passwords, use in entitle_register A Password param always prompted to confirm the entered password. This doesn't make sense if you want to prompt for a password to another system like we do with entitlements. This adds a new boolean option to control the Password prompt parameter. https://fedorahosted.org/freeipa/ticket/1695 --- ipalib/parameters.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ipalib/parameters.py') diff --git a/ipalib/parameters.py b/ipalib/parameters.py index e1c0b093a..e7e75782a 100644 --- a/ipalib/parameters.py +++ b/ipalib/parameters.py @@ -1369,6 +1369,10 @@ class Password(Str): A parameter for passwords (stored in the ``unicode`` type). """ + kwargs = Str.kwargs + ( + ('confirm', bool, True), + ) + def _convert_scalar(self, value, index=None): if isinstance(value, (tuple, list)) and len(value) == 2: (p1, p2) = value -- cgit