|  | @@ -132,6 +132,9 @@ class LuticateUsersBusiness extends LuBusiness {
 | 
		
	
		
			
			| 132 | 132 |  
 | 
		
	
		
			
			| 133 | 133 |      public static function add($username, $email, $firstname, $lastname, $password)
 | 
		
	
		
			
			| 134 | 134 |      {
 | 
		
	
		
			
			|  | 135 | +        if (strlen($password) < 5) {
 | 
		
	
		
			
			|  | 136 | +            self::badInput("Password must have at least 5 characters");
 | 
		
	
		
			
			|  | 137 | +        }
 | 
		
	
		
			
			| 135 | 138 |          $hash = self::hashPassword($password);
 | 
		
	
		
			
			| 136 | 139 |          if (filter_var($username, FILTER_VALIDATE_EMAIL))
 | 
		
	
		
			
			| 137 | 140 |              self::badInput("Username can not be an email");
 |