Commit Graph

109 Commits

Author SHA1 Message Date
Son NK 6976c28985 set user_id when creating AliasUsedOn 2020-04-14 22:33:59 +02:00
Son NK 45ea72a997 make sure to set user_id when creating EmailLog 2020-04-14 22:28:33 +02:00
Son NK 9ee8245760 make sure to set user_id when creating contact 2020-04-14 22:28:33 +02:00
Son NK e81b807971 always return 200 in /forgot_password 2020-04-14 22:26:47 +02:00
Son NK 7d61c5d8c2 add "in_trial" to /user_info 2020-04-14 22:26:47 +02:00
Son NK 46701530db Add POST /api/auth/forgot_password 2020-04-14 22:26:47 +02:00
Son NK c57189e538 return email in /user_info 2020-04-14 22:26:47 +02:00
Son NK 2d570f7290 Take into account query in GET /api/aliases 2020-04-14 22:26:13 +02:00
Son NK 54a30a62d2 Add DELETE /api/contacts/:contact_id 2020-04-14 22:26:13 +02:00
Son NK e8b315b431 rename gen_email_id -> alias_id 2020-04-14 22:25:04 +02:00
Son NK c2d772ded1 rename GenEmail -> Alias, gen_email to alias whenever possible 2020-04-14 22:19:30 +02:00
Son NK d2c13763a2 rename ForwardEmailLog to EmailLog 2020-04-14 22:19:19 +02:00
Son NK 087d6c6652 rename forward_id to contact_id 2020-04-14 22:19:08 +02:00
Son NK f8f1e2124a rename ForwardEmail to Contact 2020-04-14 22:08:38 +02:00
Son NK 00f3b7b532 use parseaddr instead of get_email_part 2020-04-14 22:06:42 +02:00
Son NK 7b90962076 use email.utils.parseaddr and formataddr instead of get_email_name 2020-04-14 22:06:42 +02:00
Son Nguyen Kim 84fa16cb86 Merge pull request #109 from simple-login/alias-api
Alias api
2020-04-14 21:56:45 +02:00
Son NK e713efee98 reformat 2020-03-13 10:34:41 +01:00
Son NK eb66900ba3 make test more stable 2020-03-11 13:35:56 +01:00
Son NK 1098f17c0c Support note in POST /api/alias/random/new 2020-03-11 12:24:30 +01:00
Son NK aad06f73e9 Support note in POST /api/alias/custom/new 2020-03-11 12:23:43 +01:00
Son NK 417009b3be return note in GET /api/aliases 2020-03-11 12:16:45 +01:00
Son NK 2eef010bad add pgp_utils 2020-03-08 12:51:33 +01:00
Son NK 3b454b9a80 fix test 2020-03-05 20:32:08 +01:00
Son NK a6f4059d5d make sure to set mailbox_id when creating GenEmail 2020-03-05 17:03:07 +01:00
Son NK ca70d26285 black format 2020-03-05 11:00:58 +01:00
Son NK 32cd2fd650 Add related endpoints for registration
POST /api/auth/register
POST /api/auth/activate
POST /api/auth/reactivate
2020-02-28 19:02:01 +07:00
Son NK 91d5d1c9ac fix test 2020-02-27 22:31:38 +07:00
Son NK a9a5f145aa fix showing unverified mailbox when creating new alias 2020-02-21 21:59:13 +07:00
Son NK 991a76dabd fix test 2020-02-10 23:30:38 +07:00
Son NK dec36ceeec Fix add_or_replace_header: make sure to delete all header occurrences before 2020-02-07 22:04:27 +07:00
Son NK 4c383663f4 Fix delete_header not deleting all header occurences 2020-02-07 22:04:27 +07:00
Son NK e10981f85e able to create word-based or uuid-based in /api/alias/random/new endpoint 2020-02-07 21:30:46 +07:00
Son NK 3092536b40 add GET /api/aliases/:alias_id/activities endpoint 2020-02-05 18:57:11 +07:00
Son NK c5dc4fec4c add POST /api/aliases/:alias_id/toggle endpoint 2020-02-05 18:28:54 +07:00
Son NK c90a4899d2 Add DELETE /api/aliases/:alias_id endpoint 2020-02-05 18:21:17 +07:00
Son NK 14b48835ae reuse ApiKey if same device 2020-02-05 18:05:26 +07:00
Son NK d8229102a6 add test for custom alias page 2020-02-05 17:35:38 +07:00
Son NK 40cac56986 GET /api/aliases 2020-02-04 23:26:59 +07:00
Son NK c7903d534a use null instead of "" in /api/auth/login 2020-02-04 18:32:57 +07:00
Son NK ad1cf3af8c fix test 2020-01-30 13:20:32 +07:00
Son NK fc22593bf6 avoid email loop
Prevent user from adding a domain that they are using for their personal email.
2020-01-28 15:16:26 +07:00
Son NK f93e40c6ae add test for custom_domain 2020-01-28 15:13:03 +07:00
Son NK f76bdd8fe6 set DISABLE_REGISTRATION param to disable registration 2020-01-28 11:50:25 +07:00
Son NK fc7a832969 add can_be_used_as_personal_email() 2020-01-25 22:40:30 +07:00
Son NK 87a348932d rename env.test to test.env 2020-01-23 09:20:41 +01:00
Son NK bdf75951f1 support ALIAS_DOMAINS
- use verify_prefix_suffix() in /api/alias/custom/new
-
2020-01-22 10:24:17 +01:00
Son NK d7ed0d77bd add email_belongs_to_alias_domains() to verify if an email belongs to one of the alias domains 2020-01-22 10:24:17 +01:00
Son NK ef788f7458 add /api/auth/mfa 2020-01-20 15:00:56 +01:00
Son NK d1734c3cf9 Create /api/auth/login 2020-01-20 14:51:28 +01:00