Граф коммитов

208 Коммитов

Автор SHA1 Сообщение Дата
Luke Crouch f3d81c49dc fix #961: add csrf tokens to all preferences forms 2019-05-23 15:15:55 -05:00
Luke Crouch afc4a73b58 fix pre-FxA unsubscribe links 2019-05-23 11:53:29 -05:00
Luke Crouch d1d1c70694 tests 2019-05-22 16:08:00 -05:00
Luke Crouch 267d134eae fix #941: implement remove button 2019-05-22 13:54:24 -05:00
luke crouch f338d75c46
Merge pull request #917 from mozilla/redirect-to-dashboard-911
fix #911: redirect verify email visits to dashboard
2019-05-15 09:51:28 -05:00
Luke Crouch d7a3b6efda fix #911: redirect verify email visits to dashboard 2019-05-15 09:31:11 -05:00
Luke Crouch 774197518c wire /update-comm-option to DB.setAllEmailsToPrimary 2019-05-14 13:45:36 -05:00
Luke Crouch 55067e461c all_emails_to_primary sends all emails to primary 2019-05-14 10:47:21 -05:00
Luke Crouch ad519e59fc fix #889: implement resend email functionality 2019-05-12 16:50:04 -05:00
Luke Crouch 7273b554f7 fix #891: _requireSessionUser throws must-be-signed-in 2019-05-10 14:10:45 -05:00
Luke Crouch b81ad8cb61 fix hbs-helpers 2019-05-09 15:26:24 -05:00
Luke Crouch a24f3d2205 remove un-used /hibp/breaches endpoint 2019-05-09 15:04:07 -05:00
Luke Crouch 9e8bd76e59 fix user controller tests 2019-05-09 15:00:01 -05:00
Luke Crouch 8fce56e679 fix test for oauth confirmed 2019-05-09 13:47:06 -05:00
Luke Crouch e83daf34cc remove all old assignments from TEST_DATA 2019-05-09 11:10:18 -05:00
Luke Crouch b3593be25f wip: fix user controller tests 2019-05-09 11:10:18 -05:00
Luke Crouch 5e83d53105 fix invalid email test 2019-05-09 11:10:18 -05:00
Luke Crouch d33fb77a09 fix user add POST test 2019-05-09 11:10:18 -05:00
Luke Crouch f0ab13e456 fix hibp.test.js 2019-05-09 11:10:18 -05:00
Luke Crouch 671a133e8b test for getEmailAddressesByHashes 2019-05-06 15:53:57 -05:00
Luke Crouch 2ec804d05b fix getUnsubscribeUrl 2019-05-06 15:48:42 -05:00
Luke Crouch a63203decd fix #862: make HIBP callback check email_addresses 2019-05-06 15:14:45 -05:00
Luke Crouch 82dbb34753 for #863: add test for setBreachesLastShown 2019-04-24 14:12:55 -05:00
Luke Crouch c83f4c86fd for #863: clean up tests for new DB methods 2019-04-24 13:21:12 -05:00
Lesley Norton 4ec56c90d0 Delete old "user_dashboard" and "full_report" routes. 2019-04-03 16:38:00 -05:00
lesleyjanenorton 561e7068c3 Create helpers folder and move helpers. 2019-03-25 16:42:34 -05:00
luke crouch 8867a08980
Merge pull request #797 from mozilla/clear-req-session-state-796
fix #796: delete oauth state when done with it
2019-02-22 10:41:32 -06:00
Luke Crouch 824f097c6f fix #796: delete oauth state when done with it 2019-02-21 10:06:30 -06:00
Luke Crouch 4556428643 fix #710 fix #721: delete subscriber on fxa delete
Store fxa uid when adding subscribers; handle SNS callback messages from
FXA delete events, and delete the corresponding Monitor subscriber.
2019-02-19 16:34:47 -06:00
Lesley Norton f856c7a060
Merge pull request #742 from mozilla/unsub-revoke-oauth-738
fix #738: FXA.revokeOAuthToken
2019-02-15 10:02:47 -06:00
Luke Crouch 147af48ddd review changes for #738 2019-02-15 09:51:06 -06:00
Luke Crouch 3e18c45ffc for #738: tests for revokeOAuthToken 2019-02-15 09:51:06 -06:00
Lesley Norton 0269c9024f
Merge branch 'master' into streamlined-scan-results 2019-02-14 14:32:29 -06:00
Lesley Norton 20afd2fbee Review updates / Resolve conflicts 2019-02-14 14:28:05 -06:00
Lesley Norton df5871cda1 Update related tests. 2019-02-12 14:38:11 -06:00
Luke Crouch cca289c27f for #688: update tests to mock csrfToken 2019-02-06 16:06:21 -06:00
Lesley Norton 77494d06ff Updates test. 2019-02-01 15:12:31 -06:00
Luke Crouch 0522c6db59 fix #712: check if token is already verified before sending email 2019-01-24 16:42:20 -06:00
luke crouch 56daccdda1
Merge branch 'master' into fxa-updates 2019-01-22 10:09:38 -06:00
luke crouch 1e533b0a83
Merge pull request #699 from mozilla/utm-params-to-email-buttons
Add utm parameters to CTA buttons and unsubscribe links in emails.
2019-01-16 11:15:48 -06:00
Lesley Norton ea7a1c6914 Review updates 2019-01-15 11:57:01 -06:00
Lesley Norton f2f783f0ec OAuth controller and test updates. 2019-01-15 10:52:25 -06:00
lesleyjanenorton 5f590b5992 Update HIBP test 2019-01-14 20:27:19 -06:00
Luke Crouch 7567b6ee58 fix #703: mock HIBP subscribeHash to no-op during test 2019-01-14 12:07:20 -06:00
Lesley Norton 7596b58eaf Update OAuth test 2019-01-12 11:38:05 -06:00
lesleyjanenorton 798bc3b2f1 update tests 2019-01-09 18:20:02 -06:00
Luke Crouch 2554cc7461 set 30s timeout for all jest tests 2019-01-08 10:02:32 -06:00
Luke Crouch 239ed9b2ce fix #675: store accept-language as signup_language during fxa oauth 2019-01-03 13:28:15 -06:00
Luke Crouch b6959e190b for #669: check db array and catch basket error 2019-01-02 11:16:21 -06:00
Luke Crouch 86ad731506 request full profile; store profile and refresh token 2018-12-31 15:43:03 -06:00
Luke Crouch 335fd330c0 fix oauth controller test 2018-12-26 12:09:23 -06:00
lesleyjanenorton a1d69cd001 Update tests. 2018-12-11 14:23:29 -06:00
Lesley Norton bc0819aed9 update tests 2018-12-03 22:55:54 -05:00
luke crouch e0ad26767e
Merge pull request #577 from mozilla/fix-lang-error-in-hibp-callback-572
fix #572: default to en when no signup_language
2018-11-07 13:12:28 -08:00
luke crouch 5fc180ff06
Merge pull request #571 from mozilla/remove-token-from-public-hibp-api-requests-570
fix #570: remove unnecessary HIBP_API_TOKEN
2018-11-06 17:22:11 -08:00
Luke Crouch 4015f7e1ad fix #572: default to en when no signup_language 2018-11-06 13:29:11 -08:00
Luke Crouch 7f2b610472 fix #570: remove unnecessary HIBP_API_TOKEN 2018-11-02 14:23:13 -05:00
Lesley Norton 4f49ecff02 Update Tests 2018-11-02 11:21:45 -05:00
Luke Crouch ffd6f9b778 fix #547: fix locale args to hbs helpers 2018-10-22 15:39:18 -05:00
Lesley Norton c58e14c531
Merge branch 'master' into email-i20n 2018-10-22 11:38:49 -05:00
lesleyjanenorton 5160f9c045 Localize breach alert button 2018-10-22 10:11:06 -05:00
lesleyjanenorton 9c2cef6e3e Add DataClasses to test-breaches 2018-10-20 10:06:55 -05:00
Lesley Norton d84e4e4aac update hbs-helpers tests 2018-10-18 12:10:41 -05:00
lesleyjanenorton 4d18c6d3e3 Update handlebars helper tests 2018-10-14 14:52:43 -05:00
Luke Crouch 77502691f6 update breachDataClasses helper test 2018-10-11 17:06:35 -05:00
Luke Crouch 5b6f35afcd for #486: use fluent-langneg
and check for messages in a bundle before using it
2018-10-11 15:16:38 -05:00
Luke Crouch cb812a4c91 fix tests for l10n 2018-10-09 14:26:01 -05:00
Luke Crouch 7b83cad25b start saving signup language for future emails 2018-10-01 06:24:34 -05:00
luke crouch 3c8ded8f0d
Merge pull request #445 from mozilla/token-auth
fix #444: check bearer token on /hibp/notify
2018-09-25 20:26:06 -05:00
Luke Crouch bf446223ad fix #444: check bearer token on /hibp/notify 2018-09-25 20:23:18 -05:00
Luke Crouch 9dfa3c2e56 last day fix of basket API call 2018-09-24 19:06:21 -05:00
luke crouch 6bfb7c280e
Merge pull request #432 from mozilla/check-hibp-scan-response-415
Check hibp scan response 415
2018-09-20 15:29:37 -05:00
Luke Crouch 088a243e41 for #415: mock HIBP more now that it throws errors
And stop swallowing got errors in subscribeHash
2018-09-20 14:41:12 -05:00
Luke Crouch 4e2d7543b0 for #415: better throttle error message 2018-09-20 12:00:54 -05:00
Luke Crouch 7a82dbd072 fix #431: fixes for basket API calls 2018-09-20 11:57:29 -05:00
Luke Crouch e3e1b95b7e fix #415: move throttle to env vars and test 2018-09-20 09:50:11 -05:00
luke crouch f69e0c33e0
Merge pull request #419 from mozilla/test-hibp-breaches-endpoint
tests for /hibp/breaches; fix for if-modified-since
2018-09-14 14:18:06 -05:00
Luke Crouch 1795482ea0 tests for /hibp/breaches; fix for if-modified-since 2018-09-14 10:37:04 -05:00
Peter deHaan 2ecc2229fc Add ESLint eol-last and no-trailing-spaces rules 2018-09-13 12:06:13 -07:00
Lesley Norton af9f3620ab for tokens that have equal signs in them 2018-09-12 16:01:57 -05:00
Lesley Norton 8bdc0fd909 Fix test / review updates 2018-09-12 15:48:41 -05:00
Luke Crouch 9e3f0ada46 moar db testing 2018-09-12 09:10:57 -05:00
Luke Crouch 8fa076ec89 hbs-helpers.test.js 2018-09-11 16:33:06 -05:00
Luke Crouch cae45461a2 basket.test.js and hibp.test.js 2018-09-11 15:56:52 -05:00
Luke Crouch 80009b09e0 basket.test.js 2018-09-11 15:21:54 -05:00
Luke Crouch e148ab4828 make tests/controllers dir 2018-09-11 14:26:02 -05:00
Luke Crouch 8cdb707347 fix tests 2018-09-11 09:36:05 -05:00
luke crouch dab4daa101
Merge pull request #376 from mozilla/unsubscribe-twice-364
fix #364: show error when unsubscribe token isn't found
2018-09-10 16:22:12 -05:00
Luke Crouch 80a7f1d074 fix #364: show error when unsubscribe token isn't found 2018-09-10 16:16:05 -05:00
Luke Crouch fb20fdede4 ensure hash matching is case-insensitive 2018-09-10 10:03:21 -05:00
Luke Crouch a63540c3d0 fix #353: improve error message 2018-09-06 15:58:12 -05:00
Luke Crouch 1570fd6a38 fix user test now that breaches are required to verify 2018-09-04 16:13:58 -05:00
Luke Crouch 18b35dbdef only test permanent bounce message 2018-08-27 15:56:04 -05:00
Luke Crouch 5deb41a54e fix #251: verify signatures of SNS messages 2018-08-27 15:44:38 -05:00
Luke Crouch 4455f95156 fix #286: /user/unsubscribe route and logic 2018-08-26 09:57:15 -05:00
Luke Crouch 6b5ebcdcdc add tests for email-utils
Also consolidates email settings into a single SMTP_URL
2018-08-22 13:50:34 -05:00
Luke Crouch 059451826b reconcile home logic for tests and site 2018-08-20 14:12:45 -05:00
Luke Crouch 75993deafd fix oauth client injection 2018-08-20 13:50:44 -05:00
Luke Crouch 4f8204ff43 refactor to dockerflow controller and test it 2018-08-20 13:05:08 -05:00
Luke Crouch 1739433dac refactor to hibp controller and test 2018-08-20 11:32:41 -05:00