reset failedLoginAttemptsBeforeSuccessClaim
" onSuccess : function(context){",
" var user = context.steps[1].subject;",
" if (isExceedInvalidAttempts(user)) {",
- " executeStep(2);",
+ " executeStep(2, {",
+ " onSuccess : function(context) {",
+ " var user = context.steps[1].subject;",
+ " user.localClaims[failedLoginAttemptsBeforeSuccessClaim] = \"0\";",
+ " }",
+ " });",
" }",
" },",
" onFail : function(context) {",
