Merge lp:~rharding/launchpad/email_notice_extras_959482 into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Aaron Bentley on 2012-04-17 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15111 | ||||
| Proposed branch: | lp:~rharding/launchpad/email_notice_extras_959482 | ||||
| Merge into: | lp:launchpad | ||||
| Prerequisite: | lp:~rharding/launchpad/email_notice_959482 | ||||
| Diff against target: |
103 lines (+24/-9) 2 files modified
lib/lp/services/oauth/model.py (+15/-8) lib/lp/services/oauth/tests/test_tokens.py (+9/-1) |
||||
| To merge this branch: | bzr merge lp:~rharding/launchpad/email_notice_extras_959482 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Aaron Bentley (community) | 2012-04-17 | Approve on 2012-04-17 | |
|
Review via email:
|
|||
Commit Message
Send a security notice email to user when an oauth token is created for them.
Description of the Change
= Summary =
This is a follow up branch [1] to add security emails to users when important
activities occur under their account. This branch deals with GPG keys and
OAuth tokens.
== Propsed Fix ==
Reuse the Person `security_
and OAuth tokens are generated.
== Implementation Notes ==
Investigation found out that new GPG keys automatically get an email sent to
the preferred email address. It doesn't send the email to the address in the
key itself. This means we don't need to add any additional notifications in
this case.
It was decided that emails weren't necessary on deactivation of these. We can
look at adding support going forward if it becomes an issue, but deactivating
GPG keys are destructive since it's easy to reenable.
== Tests ==
lib/lp/
== Lint ==
Corrected existing lint errors in model/oauth.py in some drive by linting.
[1] https:/

Looks good. Thanks for the cleanup.