diff mod_password_policy/mod_password_policy.lua @ 845:1c14edca74a4

mod_password_policy: Fix inverted length check.
author Waqas Hussain <waqas20@gmail.com>
date Sat, 06 Oct 2012 19:25:53 +0500
parents 0649883de4d3
children cb26d04b391c
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)