Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Enables email TFA and adds override for password reset form #86

Conversation

nathanielwoodland
Copy link
Contributor

@nathanielwoodland nathanielwoodland commented Dec 21, 2023

  1. Enables email TFA and adds override for password reset form
  2. Removes default reroute_email override from settings.php and moves them into config split

@@ -5,7 +5,7 @@ subject: 'One Time Password'
body: "Dear [user:name],\r\n \r\nYour One Time Passcode for completing your NY Senate TFA Verification is: [user:email_tfa]\r\n \r\nPlease use this Passcode to complete your transaction. Do not share this Passcode with anyone.\r\n \r\nThank you,\r\n[site:name] team"
routes: "email_tfa.verifiy\r\nuser.logout"
timeouts: 300
status: false
status: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this turning on TFA for local environments?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@routinet It seems that way to me. I wonder if it was just a mistake testing locally. I think it would be safe to change to false. Would you like me to make that change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our goal is to ensure TFA is always enabled on live for all privileged users (e.g., LC, MCP, admins). test should probably have TFA enabled, though the reroute_email address should be set to our dev gmail account ([email protected]). For all other environments, TFA should be disabled.

* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
$instance = new static(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can replace with $instance = parent::create($container); ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW I believe I meant to do this, but I'd directly copied the parent create logic into the new create method while debugging something. Anyway, great catch! Future me thanks you for not letting me introduce a future upgrade bug.

@nathanielwoodland
Copy link
Contributor Author

Okay @routinet and @aheaphy, this PR has been updated with everything discussed in Slack. Feel free to add your reviews.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this turning TFA on for local environments?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@routinet we should probably delete the develop multi-dev and anything associated with this environment ... can you think of any reason to keep?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only the warm+fuzzy feelings I have when I think about it.

@fksaintil fksaintil added the ready Tested and ready for deployment (unless on-hold) label Jan 19, 2024
@kzalewski kzalewski merged commit be5ea5f into main Jan 25, 2024
2 checks passed
@kzalewski kzalewski deleted the feature/aten-nys-58--enable-email-tfa-and-add-override-for-pass-reset branch January 25, 2024 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Tested and ready for deployment (unless on-hold)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants