in source/web_site/js/dash.js [375:387]
newPasswordRequired: function(userAttributes, requiredAttributes) {
// User was signed up by an admin and must provide new
// password and required attributes, if any, to complete
// authentication.
console.log("New Password Required");
var attributesData = {};
if (newPassword.length >= 8 && newPassword.match(/[a-z]/) && newPassword.match(/[A-Z]/) && newPassword.match(/[0-9]/) && newPassword == $("#newPassword2").val()) {
cognitoUser.completeNewPasswordChallenge(newPassword, attributesData, this)
} else {
$("#newPasswordModal").modal("show");
}
}