From b35849b47d1018fef339ea63e364b29c848bd26d Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Fri, 16 Oct 2009 02:22:39 -0600 Subject: Change Password param so (password, confirm_password) can be passed to _convert_scalar() --- ipalib/errors.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ipalib/errors.py') diff --git a/ipalib/errors.py b/ipalib/errors.py index fb82062ab..1c358cd6f 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -736,6 +736,15 @@ class NoSuchNamespaceError(InvocationError): format = _('api has no such namespace: %(name)r') +class PasswordMismatch(InvocationError): + """ + **3011** Raise when password and password confirmation don't match. + """ + + errno = 3011 + format = _('Passwords do not match') + + ############################################################################## # 4000 - 4999: Execution errors -- cgit