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

fix(2fa): Send 'security settings changed' email with 2fa enroll #8771

Merged
merged 2 commits into from Jun 20, 2018

Conversation

maheskett
Copy link
Contributor

No description provided.

@maheskett maheskett requested a review from billyvg June 19, 2018 01:08
@@ -195,7 +195,7 @@ def post(self, request, user, interface_id):
context={
'authenticator': interface.authenticator,
},
send_email=False,
send_email=True,
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 I wonder why we didn't do this to begin with.

@@ -203,7 +214,10 @@ def test_recovery_codes_regenerate(self):
resp = self.client.get(url)
assert old_codes != resp.data['codes']

def test_delete(self):
assert email_log.info.call_count == 0
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't we want this action to send an email?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya, I'll add it in a follow-up pr ^

@@ -155,6 +163,8 @@ def test_u2f_remove_device(self):
resp = self.client.delete(url)
assert resp.status_code == 500

assert email_log.info.call_count == 0
Copy link
Member

Choose a reason for hiding this comment

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

Removing a device seems like it should generate an email as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ya, I'll add it in a follow-up pr ^

@maheskett maheskett merged commit 4d8f4f9 into master Jun 20, 2018
@maheskett maheskett deleted the maheskett/send-2fa-enroll-emails branch June 20, 2018 20:24
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants