Commit Graph

1961 Commits

Author SHA1 Message Date
Son Nguyen Kim ccb526faa1 blur out other aliases when an alias is highlighted 2021-09-06 19:12:31 +02:00
Son Nguyen Kim 1df5bec8df use parsleyjs instead of formbouncerjs 2021-09-06 18:51:50 +02:00
Son Nguyen Kim ffd2ec5e81 add filter by directory on dashboard 2021-09-05 19:11:05 +02:00
Son Nguyen Kim 3faf5c921d add admin for custom domain 2021-08-24 19:43:32 +02:00
Son Nguyen Kim ef6388887f better filter app 2021-08-21 17:56:23 +02:00
Son Nguyen Kim d6e48ea2e4
Merge pull request #593 from boarwell/keyboard-focusable
Re: Make the "Create" button focusable with keyboard
2021-08-21 16:25:20 +02:00
Son Nguyen Kim 40915ad741 make alias description font smaller 2021-08-21 16:18:01 +02:00
Son Nguyen Kim 4b184998bc make alias note always visible. Rename it to description 2021-08-21 16:11:17 +02:00
Son Nguyen Kim b5c827c2ea handle case user already has an active subscription via another channel (Paddle, Apple, etc) on coupon page 2021-08-21 16:04:32 +02:00
Son Nguyen Kim 513f5cd4fb rename 2021-08-21 15:55:22 +02:00
boarwell 8519d06639 make the "Create" button focusable with keyboard
fix https://github.com/simple-login/app/pull/561#issuecomment-899102494
2021-08-21 01:09:40 +09:00
Son Nguyen Kim bae9a6f431 flake8 2021-08-20 16:09:22 +02:00
Son Nguyen Kim 76c1b3d807 use deepcopy instead of email.message_from_string in copy() 2021-08-20 16:03:22 +02:00
Son Nguyen Kim 51578ce934 add filter by mailbox 2021-08-20 12:21:27 +02:00
Son Nguyen Kim b606d35c11 add pg_trgm index on Alias.note to speed up LIKE search 2021-08-20 12:14:20 +02:00
Son 009e1edced also support substring search 2021-08-19 18:07:11 +02:00
Son d8cb327b6e fix search 2021-08-19 17:47:10 +02:00
Son Nguyen Kim 59e4dbb6a6 fix error display on domain ownership check 2021-08-17 19:39:58 +02:00
Son Nguyen Kim 9c6f3989a0 remove hack 2021-08-17 19:19:49 +02:00
Son Nguyen Kim aa041708e3 add ownership verification via TXT record 2021-08-17 19:05:12 +02:00
Son Nguyen Kim f4fead2542 generate a domain ownership txt token if needed 2021-08-17 19:03:15 +02:00
Son Nguyen Kim 52e2e67081 add CustomDomain ownership_verified, ownership_txt_token column. Set ownership_verified=True for domain that has verified=True 2021-08-17 19:02:35 +02:00
Son e03f9d2342 black 2021-08-15 22:17:49 +02:00
Son cc86f698ee add login_as to admin 2021-08-15 22:14:52 +02:00
Son 800e866663 fix the alias creation not working 2021-08-15 18:18:23 +02:00
Son 1678945d5a improve wording 2021-08-15 17:58:49 +02:00
Son 0f4ad1a0d4 black 2021-08-15 17:56:31 +02:00
Son e5308932a2 make mailbox deletion async 2021-08-15 17:50:47 +02:00
Son 1384ccc459 remove RESET_DB config 2021-08-15 17:32:33 +02:00
boarwell e0da867b4a make the "Create" button focusable with keyboard 2021-08-09 16:49:03 +09:00
Son Nguyen Kim 2e9b288d7b optimize get_alias_infos_with_pagination_v3 when searching on mailbox email 2021-08-06 09:18:14 +02:00
Son Nguyen Kim 006a7b1420 black 2021-08-06 08:46:38 +02:00
Son Nguyen Kim 2f8f354f28 fix error with match(): use plainto_tsquery instead 2021-08-05 19:44:13 +02:00
Son Nguyen Kim 91d3d11452 update wording 2021-08-05 17:37:35 +02:00
Son Nguyen Kim 9eb3c7cf2c use Alias.ts_vector instead of note when returning alias 2021-08-04 09:30:12 +02:00
Son Nguyen Kim 2b048543d3 add Alias.ts_vector column to use full text search 2021-08-04 09:29:56 +02:00
Son Nguyen Kim e2fea3aed8 Revert "add index for Alias name and email column"
This reverts commit 35a9a723aa.
2021-08-04 09:01:59 +02:00
Son Nguyen Kim 35a9a723aa add index for Alias name and email column 2021-08-04 08:57:13 +02:00
Son Nguyen Kim b9d1d10473 Revert "add some indexes to speed up search by query"
This reverts commit e9538a62be.
2021-08-04 08:56:11 +02:00
Son Nguyen Kim e9538a62be add some indexes to speed up search by query 2021-08-03 19:13:48 +02:00
Son Nguyen Kim fb29503b81 do not send bounce to IgnoreBounceSender 2021-08-02 11:33:58 +02:00
Son Nguyen Kim 6dac717c75 Add IgnoreBounceSender model 2021-08-02 11:30:29 +02:00
Son Nguyen Kim 383cd49f25 fix year copyright in email 2021-07-30 17:05:16 +02:00
Son Nguyen Kim 9968cbfa8e make sure user cancels the Paddle subscription before deleting their account 2021-07-29 12:09:40 +02:00
Son Nguyen Kim 1cca7d4025 prettify UI 2021-07-29 10:14:13 +02:00
Son Nguyen Kim 5821bd6512 Create HibpNotifiedAlias to store all notified aliases 2021-07-29 09:41:46 +02:00
Son Nguyen Kim 5aef6cceb2 Add description, date column to Hibp model 2021-07-29 08:51:21 +02:00
Son Nguyen Kim dc83c3dd9e Add filter for Only Aliases Found In Data Breaches 2021-07-29 08:45:52 +02:00
Son Nguyen Kim 77c993b864 remove unused get_alias_infos_with_pagination_v2 2021-07-28 18:48:10 +02:00
Son Nguyen Kim 52376484a5 Add nb_block_last_24h, nb_bounced_last_24h, nb_forward_last_24h, nb_reply_last_24h 2021-07-28 18:31:59 +02:00
Son Nguyen Kim 39e2750486 remove Metric 2021-07-28 18:20:18 +02:00
Son Nguyen Kim 8e72d79837 add coupon page on the pricing page 2021-07-25 10:58:41 +02:00
Son Nguyen Kim 8ab840933f Add NEWRELIC_CONFIG_PATH config 2021-07-23 15:48:50 +02:00
Son Nguyen Kim 52fb01ed8d take into account expand_alias_info on the dashboard 2021-07-22 10:30:38 +02:00
Son Nguyen Kim c0fe72ccd0 user can change the expand_alias setting 2021-07-22 10:30:17 +02:00
Son Nguyen Kim 8de9931b28 Add User.expand_alias_info column 2021-07-22 10:17:23 +02:00
Son Nguyen Kim a58aaf8399 add disable OTP to admin page 2021-07-22 09:09:13 +02:00
Son Nguyen Kim f9b71a4bf4 add journalist upgrade into admin page 2021-07-21 15:08:25 +02:00
Son Nguyen Kim d181cd49dd Sign the whole Alias Suffix Info instead of just the suffix 2021-07-19 20:14:59 +02:00
Son Nguyen Kim 3141bf1367 remove redundant check 2021-07-19 20:02:26 +02:00
Son Nguyen Kim 06c2114534 add the "in the last 14 days" mention 2021-07-19 18:43:41 +02:00
Son Nguyen Kim 55dcd63654 support search on contact page 2021-07-14 18:57:25 +02:00
Son Nguyen Kim ac1f56f206 add in the last 14 days mention on the contact page 2021-07-14 17:23:33 +02:00
Son Nguyen Kim aa799fa339 Revert "Do not return contact alias activity on the contact manager page"
This reverts commit 45891bed36.

# Conflicts:
#	app/dashboard/views/alias_contact_manager.py
2021-07-14 17:21:07 +02:00
Son Nguyen Kim 25f0a71ea5 add 2 weeks mention on global stats 2021-07-14 17:15:46 +02:00
Son Nguyen Kim 253be7bad4 Revert "disable global stats to help the DB"
This reverts commit 7ce83c36b9.
2021-07-14 15:55:03 +02:00
Son Nguyen Kim 189eb8427e speed up should_disable() 2021-07-14 12:25:44 +02:00
Son Nguyen Kim e26287a4c7 Revert "disable should_disable() for now"
This reverts commit fb88654d84.
2021-07-14 12:23:02 +02:00
Son Nguyen Kim b98e913304 fix contact page 2021-07-13 22:25:53 +02:00
Son Nguyen Kim 45891bed36 Do not return contact alias activity on the contact manager page 2021-07-13 19:27:45 +02:00
Son Nguyen Kim fb88654d84 disable should_disable() for now 2021-07-13 17:24:28 +02:00
Son Nguyen Kim 7ce83c36b9 disable global stats to help the DB 2021-07-13 14:52:02 +02:00
Son Nguyen Kim cbd6c96d01 preload Alias.hibp_breaches 2021-07-13 14:11:27 +02:00
Son Nguyen Kim 7ac2a02b27 join with EmailLog directly without passing by Contact 2021-07-13 14:11:14 +02:00
Son Nguyen Kim 4b9b3f18a2 add index for contact.reply_email col 2021-07-13 10:17:10 +02:00
Son Nguyen Kim edab5dfac3 fix 2021-07-13 09:59:51 +02:00
Son Nguyen Kim 19c067fa17 add coupon admin 2021-07-13 08:55:04 +02:00
Son Nguyen Kim 601385a0c1 add coupon 2021-07-13 08:54:37 +02:00
Son Nguyen Kim 7a8b5d80ed Create coupon model 2021-07-12 19:26:28 +02:00
Son Nguyen Kim cc650f9fae remove unused import 2021-07-12 18:56:43 +02:00
Son Nguyen Kim 99599bb09f make sure user needs to go through MFA when resetting password 2021-07-12 18:56:09 +02:00
Son Nguyen Kim 0b063cb409 Add EmailLog.alias_id column 2021-07-11 12:27:30 +02:00
Son Nguyen Kim fe1f8e9eb8 make the reverse-alias replacement visible 2021-07-11 09:07:25 +02:00
Son NK f59651045d use data-bouncer-message instead of title to display error message 2021-07-03 17:50:54 +02:00
Son NK 95d6fa3478 make sure user can create new alias to receive an alias transfer 2021-07-03 17:12:03 +02:00
Son NK 01815b9153 replace get_suffix() by User.get_random_alias_suffix() 2021-06-27 17:51:13 +02:00
Son NK 09d00df363 reformat imports 2021-06-27 17:50:36 +02:00
Raymond Nook 4469a64de6
Merge branch 'simple-login:master' into master 2021-06-24 02:57:17 -07:00
Son NK 6532e0de93 Return 550 instead of 421 when rate limited. Rename greylisting to rate limit 2021-06-24 09:47:01 +02:00
Son NK e8cee6de80 increase greylisting threshold 2021-06-23 19:55:41 +02:00
Son NK 70b51b5002 return 550 instead of 421 in case of SMTPRecipientsRefused 2021-06-23 19:50:42 +02:00
Son NK 6fa267e92b refactor: put all SMTP statuses into status.py 2021-06-23 19:47:06 +02:00
Son NK b84eb13ab5 Discard ignored email
Create IgnoredEmail model
2021-06-22 17:52:24 +02:00
Raymond Nook 101c6c85ef
Merge branch 'simple-login:master' into master 2021-06-17 20:19:01 -07:00
Son 93991816c9 fix "Received" header is not str 2021-06-17 23:02:25 +02:00
Raymond Nook e40c276a68
Merge branch 'master' into master 2021-06-05 22:57:27 -07:00
devStorm e79959c330
🐛 imported but unused 2021-06-05 22:53:16 -07:00
Son NK 3308919906 Remove /alias/custom/new 2021-06-05 17:41:28 +02:00
Son NK ef32998e99 Remove /alias/options, /v2/alias/options, /v3/alias/options 2021-06-05 17:41:18 +02:00
Son NK a2ffc53c62 user can have manual subscription applied if their current subscription is canceled 2021-06-05 17:28:04 +02:00
Son NK 78df95395b improve upgrade_channel 2021-06-05 17:20:42 +02:00
Son NK 79d0ef8906 Use Postfix queue-id as log message-id 2021-06-04 17:15:59 +02:00
Son NK 10414a6b96 flake8 2021-06-02 19:04:58 +02:00
Son NK 62683a221a black 2021-06-02 18:48:35 +02:00
Son Nguyen Kim b14d79c8f7
Merge pull request #496 from nbraud/pw_hash/refactor
Fix minor issues with password-handling, refactor
2021-06-02 18:33:56 +02:00
Son NK eb2adc870a make sure only premium user can create new mailbox via API 2021-06-02 17:17:28 +02:00
Son NK 3897f6b633 refactor handle_bounce() 2021-06-02 11:38:52 +02:00
Son NK ed938dd86a Add query2str 2021-05-30 19:58:46 +02:00
nicoo 586654e08e app.pw_models: Refactor, use constant-time equality 2021-05-29 17:42:46 +02:00
Son NK 28285f28ac Add index for AliasHibp 2021-05-28 19:59:26 +02:00
Son NK aa667851e9 log user-agent in deprecated endpoint 2021-05-28 17:46:34 +02:00
nicoo ecd74b801b app.pw_models: Use unicode normalization
Per NIST [SP800-63B, §5.1.1.2] Memorized Secret Verifiers :
> the verifier SHOULD apply the Normalization Process for
> Stabilized Strings using either the NFKC or NFKD normalization

This is necessary for Unicode passwords to work reliably.
ASCII-only passwords aren't affected.

[SP800-63B, §5.1.1.2]: https://pages.nist.gov/800-63-3/sp800-63b.html#-5112-memorized-secret-verifiers
2021-05-27 22:16:07 +02:00
devStorm e6192ece01
style 2021-05-26 22:34:50 -07:00
Raymond Nook 258d505cbf
Merge branch 'master' into master 2021-05-26 22:33:20 -07:00
devStorm f7bef3941a
replace random_word with get_suffix(user) 2021-05-26 22:30:12 -07:00
nicoo 52d4d2abdb app.models: minor refactor (extract pw auth) 2021-05-26 18:18:47 +02:00
Son NK 8cfd5e01dc add alerts on /alias/custom/new and /v3/alias/options and below 2021-05-25 19:36:45 +02:00
Son NK 99d26a01cb UI tweak 2021-05-25 18:30:14 +02:00
Son NK 388a425cac Only show pagination control if there are previous/next page 2021-05-25 18:27:06 +02:00
Son NK b23e3d94fd make sure AliasHibp has cascade ondelete 2021-05-25 18:14:44 +02:00
Son NK fb97f384e4 small UI tweak 2021-05-25 17:59:40 +02:00
Son NK 2f96322977 make sure BOUNCE_PREFIX_FOR_REPLY_PHASE can't be used as directory name or for creating aliases on-the-fly 2021-05-25 17:59:40 +02:00
Son NK a918cc3670 Add BOUNCE_PREFIX_FOR_REPLY_PHASE 2021-05-25 17:59:40 +02:00
Son NK 159843a923 Add log for sl_sendmail 2021-05-24 12:04:22 +02:00
Son NK ade07f9449 return empty name when name can't be decoded 2021-05-22 16:47:44 +02:00
Sylvia van Os 1ee941647f Add direct link to HIBP pwned info 2021-05-21 12:08:00 +02:00
Son NK d4e930c930 Remove nullsfirst as not compatible with sqlite. Add more logging 2021-05-19 12:46:55 +02:00
Son Nguyen Kim b3f8fd6789
Merge pull request #472 from TheLastProject/feature/hibp
Add HIBP checks
2021-05-19 12:37:04 +02:00
Sylvia van Os a08b0c05cc Don't override id 2021-05-17 21:29:29 +02:00
Sylvia van Os 969616d671 Date compare in DB instead of model function 2021-05-17 18:20:35 +02:00
Sylvia van Os bee468e055 Black 2021-05-15 18:04:50 +02:00
devStorm 4a0fc8380f
variable naming 2021-05-14 11:03:16 -07:00
Sylvia van Os f67f5297f2 Add HIBP checks 2021-05-14 19:50:32 +02:00
Son NK ef2eb7f959 add Paddle subscription_id in admin 2021-05-14 16:10:34 +02:00
devStorm 30183ac8c3
🐛 fix style 2021-05-13 19:34:54 -07:00
devStorm 5c74ad2dc0
⚠️ Remove word list check 2021-05-13 16:55:46 -07:00
devStorm 178ce34399
Enum, setting 2021-05-13 16:53:01 -07:00
devStorm 3fc250018d
basic implementation of random suffix 2021-05-13 16:13:19 -07:00
Son NK edaf293398 Create admin pages for Referral and Payout 2021-05-10 15:51:39 +02:00
Son NK 93a8873192 show payouts on referral page 2021-05-10 13:03:44 +02:00
Son NK 229d2c644b Add Payout model 2021-05-10 13:03:19 +02:00
Son NK 5317b8ab84 move the api key page back to menu 2021-05-05 18:51:15 +02:00
Son NK e5926978c8 use bouncer on custom alias page 2021-04-30 11:45:00 +02:00
Son NK ceacf8e3a7 support dot in alias prefix 2021-04-30 11:37:17 +02:00
Son NK e74dbd7e98 increase monthly plan to $4 2021-04-23 12:08:27 +02:00
Son NK c5697fbf3c remove unused import 2021-04-23 12:07:49 +02:00
Son NK 7946879308 schedule account deletion 2021-04-23 11:50:26 +02:00
Son NK f3b04b9d81 add more logging 2021-04-16 18:37:16 +02:00
Son NK 0039b4c301 disable an alias if the user has too many bounces recently 2021-04-16 17:57:25 +02:00
Son NK cfb52a2eba add price mention on billing page 2021-04-12 10:14:35 +02:00