File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
main/java/com/amplifyframework/auth/cognito
test/java/com/amplifyframework/auth/cognito Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -202,16 +202,16 @@ data class AuthConfiguration internal constructor(
202
202
length = passwordLength,
203
203
requiresNumber = passwordRequirements.contains(" REQUIRES_NUMBERS" ),
204
204
requiresSpecial = passwordRequirements.contains(" REQUIRES_SYMBOLS" ),
205
- requiresLower = passwordRequirements.contains(" REQUIRES_LOWER " ),
206
- requiresUpper = passwordRequirements.contains(" REQUIRES_UPPER " )
205
+ requiresLower = passwordRequirements.contains(" REQUIRES_LOWERCASE " ),
206
+ requiresUpper = passwordRequirements.contains(" REQUIRES_UPPERCASE " )
207
207
)
208
208
}
209
209
210
210
private fun PasswordProtectionSettings.toGen1Json () = JSONObject ().apply {
211
211
put(" passwordPolicyMinLength" , length)
212
212
val characters = JSONArray ().apply {
213
- if (requiresLower) put(" REQUIRES_LOWER " )
214
- if (requiresUpper) put(" REQUIRES_UPPER " )
213
+ if (requiresLower) put(" REQUIRES_LOWERCASE " )
214
+ if (requiresUpper) put(" REQUIRES_UPPERCASE " )
215
215
if (requiresNumber) put(" REQUIRES_NUMBERS" )
216
216
if (requiresSpecial) put(" REQUIRES_SYMBOLS" )
217
217
}
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class AuthConfigurationTest {
73
73
],
74
74
"passwordProtectionSettings": {
75
75
"passwordPolicyMinLength": 10,
76
- "passwordPolicyCharacters": ["REQUIRES_NUMBERS", "REQUIRES_LOWER "]
76
+ "passwordPolicyCharacters": ["REQUIRES_NUMBERS", "REQUIRES_LOWERCASE "]
77
77
},
78
78
"mfaConfiguration": "OFF",
79
79
"mfaTypes": [
You can’t perform that action at this time.
0 commit comments