Commit Graph

183 Commits

Author SHA1 Message Date
Son NK 165d986561 add mailboxes to GET /api/v2/aliases 2020-05-10 20:09:54 +02:00
Son NK 47430725a7 improve doc 2020-05-10 20:09:54 +02:00
Son NK b95b758692 Optimize imports 2020-05-09 20:49:38 +02:00
Son Nguyen Kim b95d815e5c
Merge pull request #168 from simple-login/global-trash
Global trash
2020-05-09 18:08:51 +02:00
Son NK e68eab44b0 allow user who has TOTP enabled to continue using the mobile app 2020-05-08 20:23:13 +02:00
Son NK 2f5a03dcad make sure to add alias into global trash when deleting it 2020-05-07 22:27:27 +02:00
Son NK f929f23acc return 403 if user enables FIDO 2020-05-07 21:54:36 +02:00
Son NK 806f7016ae fix: wrongly set alias custom_domain when custom_domain is in EMAIL_ALIAS 2020-05-07 20:48:11 +02:00
Son NK 35b1972730 increase the expired alias creation session to 600 secs 2020-05-06 10:10:47 +02:00
Son NK d9e9a54082 add more info in "alias expire" error 2020-05-06 10:09:17 +02:00
Son NK 62bec84900 Add obsolete warnings 2020-05-02 16:23:40 +02:00
Son NK d32669f515 Add /api/v2/alias/custom/new 2020-05-02 16:22:17 +02:00
Son NK 72e9b52b29 Add /api/v4/alias/options 2020-05-02 16:21:18 +02:00
Son NK 0edcc25289 refactor verify_prefix_suffix: remove user_custom_domains param 2020-05-02 12:27:54 +02:00
Son NK 95a90a9979 use log warning for verifyReceipt 2020-05-01 18:31:06 +02:00
Son NK 9be813b96d fix naming 2020-04-29 16:57:28 +02:00
Son NK 8ae51998f5 take into account MacApp 2020-04-29 15:50:06 +02:00
Son NK 7b2e4da87f Support alias filter 2020-04-26 13:04:27 +02:00
Son NK 12714ae601 Add Only enabled alias sorting option 2020-04-26 12:31:10 +02:00
Son NK 4c64393df1 Add other sorting options: A-Z, Z-A, new-old, old-new 2020-04-26 12:25:12 +02:00
Son NK 63af3297f7 return alias name in GET /api/v2/aliases 2020-04-26 10:38:58 +02:00
Son NK 7a2fc007e8 Accept "name" in PUT /api/aliases/:alias_id 2020-04-26 10:38:16 +02:00
Son NK a422f33323 Add GET /api/mailboxes 2020-04-25 23:42:56 +02:00
Son NK 88ddca54c1 return mailbox in GET /api/v2/aliases 2020-04-25 23:42:56 +02:00
Son NK 97544ac760 Update mailbox using ajax
refactor: return Mailbox in User.mailboxes()
2020-04-25 13:49:40 +02:00
Son NK 489153a750 Support update mailbox_id in PUT /aliases/:aliasID 2020-04-25 13:49:40 +02:00
Son NK 36aee86590 support sorting: Oldest Alias to Newest, 2020-04-25 13:49:39 +02:00
Son NK ca6350cc27 optimize import in all files 2020-04-25 13:49:39 +02:00
Son NK 1c9d953044 add mailbox to AliasInfo 2020-04-25 13:49:39 +02:00
Son NK 48202e905f rename verify_api_key -> require_api_auth 2020-04-25 13:42:53 +02:00
Son NK 78e94da08c support user already authenticated in verify_api_key 2020-04-25 13:42:53 +02:00
Son NK 7fff8f84d8 add more debug log 2020-04-21 20:17:43 +02:00
Son NK 318b47af36 Handle the case invalid input for /api/apple/update_notification 2020-04-21 15:54:43 +02:00
Son NK e50b0d5da5 implement apple_update_notification 2020-04-21 09:34:16 +02:00
Son NK 840f827b45 Handle the case "Restore Purchase" on another account 2020-04-19 23:13:43 +02:00
Son NK d5e868e629 Fix apple payment 2020-04-19 22:54:21 +02:00
Son NK 34635bf854 use Log.error to know when /api/apple/update_notification is called 2020-04-19 16:06:37 +02:00
Son NK bca1e227c7 Add /apple/update_notification to test Apple notif 2020-04-19 11:50:29 +02:00
Son NK 1bba38edb6 Add POST /apple/process_payment 2020-04-19 11:13:38 +02:00
Son NK 3c9e6fc991 make sure to strip and lower email in input 2020-04-15 21:12:45 +02:00
Son NK 4789e439db rename auth_login to auth 2020-04-09 20:31:53 +02:00
Son NK 5d0519ed86 Add GET /api/v2/aliases 2020-04-06 22:26:35 +02:00
Son NK 425fdc66c6 Move methods to api/serializer.py 2020-04-05 16:32:38 +02:00
Son NK f15488f96b refactor: move get_alias_infos_with_pagination, get_alias_info to alias.py 2020-04-05 16:21:13 +02:00
Son NK d1e5b9f9b7 set contact name, use website_email instead of website_from in alias endpoint 2020-04-05 12:58:06 +02:00
Son NK 3baddc9206 rename 2020-04-04 20:04:42 +02:00
Son NK f7e5ab1e34 reaname 2020-04-04 19:21:31 +02:00
Son NK 4d8040c80d Add reverse_alias to GET /api/aliases/:alias_id/activities 2020-04-04 19:18:07 +02:00
Son NK 5ff8ae00e5 only lower the email part when creating new contact 2020-04-02 21:30:36 +02:00
Son NK 7f85ec30bd Improve contact manager: lowercase the contact address before adding 2020-04-01 20:31:47 +02:00
Son NK 4c1c02db60 Add /v3/alias/options 2020-03-29 23:13:04 +02:00
Son NK 97dff83453 return full alias info in POST /api/alias/random/new 2020-03-26 19:50:22 +01:00
Son NK d4a32451c1 return full alias info in POST /api/alias/custom/new 2020-03-26 19:48:36 +01:00
Son NK 159aa76aae GET /api/aliases/:alias_id 2020-03-26 19:44:00 +01:00
Son NK 78b24623af reformat: create serialize_alias_info() 2020-03-26 19:35:44 +01:00
Son NK 7d4a9efb5d set user_id when creating AliasUsedOn 2020-03-20 12:29:11 +01:00
Son NK 6e54b4fed8 make sure to set user_id when creating contact 2020-03-20 09:54:38 +01:00
Son NK b0f2d7b85a always return 200 in /forgot_password 2020-03-18 21:55:50 +01:00
Son NK a1fad2216f Improve error 2020-03-18 21:37:45 +01:00
Son NK 2079b16431 add "in_trial" to /user_info 2020-03-18 19:08:16 +01:00
Son NK f2d5230449 Add POST /api/auth/forgot_password 2020-03-18 18:43:04 +01:00
Son NK ba6b8d2711 return email in /user_info 2020-03-18 18:34:37 +01:00
Son NK a521002b2c Fix duplicate results 2020-03-17 20:16:20 +01:00
Son NK a465b1d3ca rename get_alias_info -> get_alias_infos 2020-03-17 19:59:48 +01:00
Son NK fbef076a14 Take into account query in GET /api/aliases 2020-03-17 19:32:45 +01:00
Son NK 0d725588ae Add DELETE /api/contacts/:contact_id 2020-03-17 19:18:26 +01:00
Son NK 81b5e919a3 Return contact id 2020-03-17 12:38:50 +01:00
Son NK 2d90d35647 rename gen_email_id -> alias_id 2020-03-17 12:01:18 +01:00
Son NK 4f281bdbbb rename GenEmail -> Alias, gen_email to alias whenever possible 2020-03-17 11:51:40 +01:00
Son NK bea870ef8b rename ForwardEmailLog to EmailLog 2020-03-17 11:10:50 +01:00
Son NK 17974de746 rename ForwardEmail to Contact 2020-03-17 10:56:59 +01:00
Son NK 8faf34ce40 Use warning level for /v2/alias/options 2020-03-16 21:10:53 +01:00
Son Nguyen Kim 1e10b4d675
Merge pull request #113 from simple-login/fix-custom-domain-not-set
Fix custom domain not set
2020-03-15 23:38:25 +01:00
Son NK ccc005b8b2 Do not set domain for ALIAS_DOMAINS 2020-03-15 23:33:50 +01:00
Son NK 93292c88c9 Fix not setting custom domain when creating alias via API 2020-03-15 23:18:43 +01:00
Son NK 027cbb10d9 use parseaddr instead of get_email_part 2020-03-15 22:32:48 +01:00
Son NK f87746e071 POST /api/aliases/:alias_id/contacts 2020-03-14 12:55:38 +01:00
Son NK d7cb5ed26e GET /api/aliases/:alias_id/contacts 2020-03-14 12:22:43 +01:00
Son NK bfd729b889 PUT /api/aliases/:alias_id 2020-03-14 11:38:39 +01:00
Son NK ab082a5f9b fix get_json returns 400 2020-03-11 14:02:35 +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 b05daecd28 Handle unsign can generate other exceptions 2020-03-09 09:17:40 +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 4d1d236066 add POST /api/auth/google 2020-02-28 17:29:33 +07:00
Son NK 02d26df292 add /api/auth/facebook 2020-02-28 17:26:28 +07:00
Son NK 9d23fc5ab3 small refacto 2020-02-27 22:26:29 +07:00
Son NK 74d1f87db0 disable bounced email in alias log 2020-02-22 13:27:22 +07:00
Son NK fc167b8b41 Display alias mailbox on alias page 2020-02-10 23:23:02 +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 1241199e23 add "enabled" to returned alias 2020-02-05 18:23:13 +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 40cac56986 GET /api/aliases 2020-02-04 23:26:59 +07:00
Son NK f7d000d34e alert when /alias/options is used 2020-02-04 23:01:33 +07:00