From ac05d5e179763c614a37772bc27aebc757bb3c5e Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Sat, 13 Nov 2010 14:32:57 -0800 Subject: [PATCH] Accept complex characters policy regardless of password mode * We were rejecting complex characters policy if the mode was none or simple, but this case is already handled in the constructor for PolicySet Bug: 3192973 Change-Id: I060b17401c58498d1597c9322be588020deca69c --- src/com/android/exchange/adapter/ProvisionParser.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/com/android/exchange/adapter/ProvisionParser.java b/src/com/android/exchange/adapter/ProvisionParser.java index 057ffaffe..5ba43e4bd 100644 --- a/src/com/android/exchange/adapter/ProvisionParser.java +++ b/src/com/android/exchange/adapter/ProvisionParser.java @@ -152,13 +152,9 @@ public class ProvisionParser extends Parser { tagIsSupported = false; } break; - // Complex character setting is only used if we're in "strong" (alphanumeric) mode + // Complex characters are supported case Tags.PROVISION_MIN_DEVICE_PASSWORD_COMPLEX_CHARS: passwordComplexChars = getValueInt(); - if ((passwordMode != PolicySet.PASSWORD_MODE_STRONG) && - (passwordComplexChars > 0)) { - tagIsSupported = false; - } break; // The following policies are moot; they allow functionality that we don't support case Tags.PROVISION_ALLOW_DESKTOP_SYNC: