From a74346f7a714be359d28d87471ebc360c801303e Mon Sep 17 00:00:00 2001 From: kakwa Date: Mon, 2 Nov 2015 23:47:59 +0100 Subject: [PATCH] very small improvements on ppolicy.simple --- ldapcherry/ppolicy/simple.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ldapcherry/ppolicy/simple.py b/ldapcherry/ppolicy/simple.py index 6971f35..2efb8e0 100644 --- a/ldapcherry/ppolicy/simple.py +++ b/ldapcherry/ppolicy/simple.py @@ -19,14 +19,14 @@ class PPolicy(ldapcherry.ppolicy.PPolicy): def check(self, password): if len(password) < self.min_length: - return {'match': False, 'reason': 'password too short'} + return {'match': False, 'reason': 'Password too short'} if len(re.findall(r'[A-Z]', password)) < self.min_upper: return { 'match': False, - 'reason': 'not enough upper case characters' + 'reason': 'Not enough upper case characters' } if len(re.findall(r'[0-9]', password)) < self.min_digit: - return {'match': False, 'reason': 'not enough digits'} + return {'match': False, 'reason': 'Not enough digits'} return {'match': True, 'reason': 'password ok'} def info(self):