Commit Graph

2829 Commits

Author SHA1 Message Date
f0c75d4d56 Merge pull request #1016 from omnivore-app/chore/apple-web-credential
Apple App Association: Webcredentials
2022-07-25 17:09:35 -07:00
340d5af3f7 Merge pull request #1011 from omnivore-app/feat/web-delete-my-account
Add web page to delete accounts
2022-07-25 16:23:22 -07:00
efc62600f4 Merge pull request #989 from omnivore-app/feature/email-login-and-registration
email-login, email-signup, confirm-email and reset-password router
2022-07-25 15:47:51 -07:00
09f9f19182 add webcredentials to apple site assoc file 2022-07-25 15:35:26 -07:00
82da9e6ede use sendgrid template for confirmation and password-reset email 2022-07-25 15:14:01 -07:00
8d5da15064 use template id stored in env 2022-07-25 15:14:01 -07:00
fe180c5b50 add confirm-email and password-reset email template id in env 2022-07-25 15:14:01 -07:00
560f95b57e fix test 2022-07-25 15:14:01 -07:00
43d2216983 fix test 2022-07-25 15:14:01 -07:00
024d4bd25c stop referring to user entity before migration 2022-07-25 15:14:01 -07:00
bd77a7f8ee add test for reset password 2022-07-25 15:14:01 -07:00
6699ec834d add router handler for reset password 2022-07-25 15:14:01 -07:00
286d167769 add router handler for email reset password 2022-07-25 15:14:01 -07:00
53fd7f52df delete user after testing 2022-07-25 15:14:01 -07:00
bab96aaa1e remove membership from user 2022-07-25 15:14:01 -07:00
ea9d98aa95 make confirm-email a post api 2022-07-25 15:14:01 -07:00
4c75260229 replace hard-coded email address with env var for the remaining files 2022-07-25 15:14:01 -07:00
a87f75f319 add test for confirm-email router 2022-07-25 15:14:01 -07:00
e4ea49c05f add confirm-email router 2022-07-25 15:14:01 -07:00
9ea9bd9ea1 send confirmation email to pending user when login 2022-07-25 15:14:01 -07:00
bd2327a3ae test set auth token after login 2022-07-25 15:14:01 -07:00
abb1a414c1 remove login gql resolver 2022-07-25 15:13:58 -07:00
86b950183c fix test 2022-07-25 15:13:32 -07:00
f7053622a5 remove signup gql resolver 2022-07-25 15:13:30 -07:00
80639311d7 improve confirmation email format 2022-07-25 15:12:56 -07:00
068684d16b add test for failing to send confirmation email when signup 2022-07-25 15:12:56 -07:00
d284a3d302 fake sendMail in sign up test 2022-07-25 15:12:56 -07:00
638294e17b fake sendMail in testing 2022-07-25 15:12:56 -07:00
01c4bbad00 delete pending user if failed to send confirmation email 2022-07-25 15:12:56 -07:00
b0a0020fc7 fix return false when sending failed 2022-07-25 15:12:56 -07:00
4e11000ac0 add return type 2022-07-25 15:12:56 -07:00
7a11d90d2c use mocha in the test 2022-07-25 15:12:56 -07:00
7339a0daf3 add sinon and sinon-chai for faking sendMail 2022-07-25 15:12:55 -07:00
e4e985cfce add more test 2022-07-25 15:12:55 -07:00
d187c6c993 use general sender for confirmation email 2022-07-25 15:12:55 -07:00
d108806234 make sender address nullable env var 2022-07-25 15:12:55 -07:00
b52043bd95 add a test to check if use has a pending status after creation 2022-07-25 15:12:55 -07:00
b98f7c6ba2 reject with unknow reason if failed to send confirmation email 2022-07-25 15:12:55 -07:00
1ea34bde62 send confirmation email to pending user 2022-07-25 15:12:55 -07:00
7293469468 use sender email address in env 2022-07-25 15:12:55 -07:00
bd5b289168 add verification token generation 2022-07-25 15:12:55 -07:00
1346140a20 add sender email address in env 2022-07-25 15:12:55 -07:00
ba73eec9e5 create pending user first 2022-07-25 15:12:55 -07:00
35e060890e add status to user entity 2022-07-25 15:12:55 -07:00
a97c3286bf add status to user table 2022-07-25 15:12:55 -07:00
d1b013d826 Bump @google-cloud/functions-framework from 3.1.0 to 3.1.2
Bumps [@google-cloud/functions-framework](https://github.com/GoogleCloudPlatform/functions-framework-nodejs) from 3.1.0 to 3.1.2.
- [Release notes](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/releases)
- [Changelog](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/compare/v3.1.0...v3.1.2)

---
updated-dependencies:
- dependency-name: "@google-cloud/functions-framework"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 21:32:05 +00:00
9dbf9bce67 Bump @opentelemetry/instrumentation-pg from 0.29.0 to 0.30.0
Bumps [@opentelemetry/instrumentation-pg](https://github.com/open-telemetry/opentelemetry-js-contrib) from 0.29.0 to 0.30.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js-contrib/compare/host-metrics-v0.29.0...contrib-test-utils-v0.30.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/instrumentation-pg"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 21:29:38 +00:00
2c9fdc5336 Bump graphql-middleware from 6.1.4 to 6.1.31
Bumps [graphql-middleware](https://github.com/maticzav/graphql-middleware) from 6.1.4 to 6.1.31.
- [Release notes](https://github.com/maticzav/graphql-middleware/releases)
- [Commits](https://github.com/maticzav/graphql-middleware/compare/v6.1.4...v6.1.31)

---
updated-dependencies:
- dependency-name: graphql-middleware
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 21:28:45 +00:00
1b9a69e120 Bump apollo-datasource from 3.3.1 to 3.3.2
Bumps [apollo-datasource](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-datasource) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-datasource@3.3.2/packages/apollo-datasource)

---
updated-dependencies:
- dependency-name: apollo-datasource
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 21:27:34 +00:00
1b1a783036 Add web page to delete accounts 2022-07-25 12:38:59 -07:00