Commit Graph

441 Commits

Author SHA1 Message Date
3a120b8f47 Return empty name if name not found in from header 2022-07-28 10:37:28 +08:00
c99c1db57e Add support to the case when from address is in Name <address> format 2022-07-28 10:26:15 +08:00
0bdab51bbd Merge pull request #1021 from omnivore-app/feature/save-from-email
Save articles by sending emails to omnivore inbox
2022-07-27 20:10:31 +08:00
6f11ccacb1 Save article from forwarding emails 2022-07-27 12:15:28 +08:00
d184ca8d04 Add function isProbablyArticle to test if a forwarded email contains an article to save 2022-07-27 12:15:26 +08:00
779ff1f020 Reset password is a directory now 2022-07-26 15:57:40 -07:00
65689ca538 Remove extra /auth in paths 2022-07-26 15:57:18 -07:00
3c442c06ba Set auth token cookie on success login 2022-07-26 15:56:40 -07:00
6cad41ec1e Linting fixes 2022-07-26 15:00:31 -07:00
769c9b23b0 Use SSO redirection to set both client and server cookies with email login 2022-07-26 14:48:24 -07:00
e939f12eb1 Remove unneeded branches 2022-07-26 14:28:39 -07:00
074ec781a2 Set auth cookie after reseting password 2022-07-26 12:46:13 -07:00
dc268a2216 Handle resetting passwords 2022-07-26 12:33:56 -07:00
acd36fe9af Move auth routes into /auth folder 2022-07-26 10:31:45 -07:00
072b2dd9c5 Revert "Add Set-Cookie header"
This reverts commit cb23613cdc.
2022-07-26 14:12:37 +08:00
2d9f4a0194 Redirect to the verify-email informational page after sign up 2022-07-25 23:09:01 -07:00
cb23613cdc Add Set-Cookie header 2022-07-26 14:06:11 +08:00
dca9066f19 Continue fix RLS issue of updating user table 2022-07-26 13:41:02 +08:00
29ed803ae5 Fix RLS issue of updating user table 2022-07-26 13:31:36 +08: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
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
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
abb1a414c1 remove login gql resolver 2022-07-25 15:13:58 -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
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
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
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
c113c94567 Add param validation so we dont get undefined values passed to GQL 2022-07-21 17:43:15 -07:00
ff629b2fed Merge pull request #992 from omnivore-app/fix/email-urls
Use email-signup instead of email-registration as path to match naming
2022-07-19 16:02:00 -07:00