Skip to content

Commit

Permalink
Merge pull request #1898 from govuk-one-login/AUT-2932/release-email-…
Browse files Browse the repository at this point in the history
…checks

AUT-2932: Enable email address checks
  • Loading branch information
mattvot authored Aug 5, 2024
2 parents 78dae4c + bc91000 commit d4e39f8
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 16 deletions.
1 change: 0 additions & 1 deletion ci/terraform/authdev1.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ support_account_interventions = "1"
support_reauthentication = "1"
support_2fa_b4_password_reset = "1"
support_2hr_lockout = "1"
support_check_email_fraud = "1"
password_reset_code_entered_wrong_blocked_minutes = "1"
account_recovery_code_entered_wrong_blocked_minutes = "1"
code_request_blocked_minutes = "1"
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/authdev2.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ support_account_interventions = "1"
support_reauthentication = "1"
support_2fa_b4_password_reset = "1"
support_2hr_lockout = "1"
support_check_email_fraud = "1"
password_reset_code_entered_wrong_blocked_minutes = "1"
account_recovery_code_entered_wrong_blocked_minutes = "1"
code_request_blocked_minutes = "1"
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/build.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ support_account_interventions = "1"
support_reauthentication = "0"
support_2fa_b4_password_reset = "1"
support_2hr_lockout = "1"
support_check_email_fraud = "1"
password_reset_code_entered_wrong_blocked_minutes = "1"
account_recovery_code_entered_wrong_blocked_minutes = "1"
code_request_blocked_minutes = "1"
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/sandpit.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ support_account_interventions = "1"
support_reauthentication = "1"
support_2fa_b4_password_reset = "1"
support_2hr_lockout = "1"
support_check_email_fraud = "1"
password_reset_code_entered_wrong_blocked_minutes = "1"
account_recovery_code_entered_wrong_blocked_minutes = "1"
code_request_blocked_minutes = "1"
Expand Down
1 change: 0 additions & 1 deletion ci/terraform/staging.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ support_account_interventions = "1"
support_authorize_controller = "1"
support_2fa_b4_password_reset = "1"
support_2hr_lockout = "1"
support_check_email_fraud = "1"
code_request_blocked_minutes = "120"
account_recovery_code_entered_wrong_blocked_minutes = "120"
code_entered_wrong_blocked_minutes = "120"
Expand Down
2 changes: 1 addition & 1 deletion ci/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ variable "support_reauthentication" {
variable "support_check_email_fraud" {
description = "When true enables Fraudulent email checking via Experian lockout"
type = string
default = "0"
default = "1"
}

variable "prove_identity_welcome_enabled" {
Expand Down
24 changes: 14 additions & 10 deletions src/components/check-your-email/check-your-email-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,21 @@ export const checkYourEmailPost = (
}
if (supportCheckEmailFraud()) {
const { sessionId, clientSessionId, persistentSessionId } = res.locals;
const checkEmailFraudResponse =
await checkEmailFraudService.checkEmailFraudBlock(
req.session.user.email,
sessionId,
clientSessionId,
persistentSessionId,
req
try {
const checkEmailFraudResponse =
await checkEmailFraudService.checkEmailFraudBlock(
req.session.user.email,
sessionId,
clientSessionId,
persistentSessionId,
req
);
logger.info(
`checkEmailFraudResponse: ${checkEmailFraudResponse.data.isBlockedStatus}`
);
logger.info(
`checkEmailFraudResponse: ${checkEmailFraudResponse.data.isBlockedStatus}`
);
} catch (e) {
logger.error("Error checking email fraud block", e);
}
}
const verifyCodeRequest = verifyCodePost(
service,
Expand Down

0 comments on commit d4e39f8

Please sign in to comment.