changeset 845:1c14edca74a4

mod_password_policy: Fix inverted length check.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 06 Oct 2012 19:25:53 +0500 (2012-10-06)
parents a0987c0e4e1d
children 5ddc43ce8993
files mod_password_policy/mod_password_policy.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_password_policy/mod_password_policy.lua	Fri Oct 05 19:44:23 2012 +0200
+++ b/mod_password_policy/mod_password_policy.lua	Sat Oct 06 19:25:53 2012 +0500
@@ -17,7 +17,7 @@
 local st = require "util.stanza";
 
 function check_password(password)
-	return #password <= options.length;
+	return #password >= options.length;
 end
 
 function handler(event)