feat(emails): Add `createEmail` to email sending endpoints (#199) r=vladikoff

This PR adds rate-limiting to all endpoints that send emails for the add secondary email feature. It is a one liner because we reuse the verify code and resend code endpoints in add secondary emails. The only other endpoint that sends an email is the create email operation.

Fixes #180
This commit is contained in:
Vijay Budhram 2017-04-20 11:31:18 -04:00 коммит произвёл Vlad Filippov
Родитель a919f09d2c
Коммит b412411ea6
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -37,6 +37,7 @@ const ACCOUNT_STATUS_ACTION = {
// us look like spammers if abused.
const EMAIL_SENDING_ACTION = {
accountCreate: true,
createEmail: true,
recoveryEmailResendCode: true,
passwordForgotSendCode: true,
passwordForgotResendCode: true,