storj/satellite/console
Cameron 5cfa7ca460 satellite/console: add cutoff to email reminders
There are multiple entries in the users table with the same email
address. This is because in the past users were able to register
multiple times if the email was not verified. This is no longer
the case. If a user tries to register with an unverified email
already in the DB, we send a verification email instead of
creating another entry. However, since these old entries in the
table with duplicate emails were never cleaned up, the email
reminder chore will send out email verification reminders to them.
A single person will get one separate email per entry in the DB
with their email and where status = 0.

Since the multiple entries with the same email problem was solved
a while ago, just add a constraint to GetUnverifiedNeedingReminder
to only select users created after a cutoff. Once the DB is
migrated to remove the duplicate emails, we can remove the cutoff.

github issue: https://github.com/storj/storj/issues/4853

Change-Id: I07d77d43109bcacc8909df61d4fb49165a99527c
2022-06-09 16:45:35 +00:00
..
consoleauth satellite/console: implement WebappSessions db 2022-05-16 15:06:04 +00:00
consolewasm web/satellite: add consent screen for oauth 2022-04-27 14:33:07 +00:00
consoleweb apigen: project delete endpoint 2022-06-07 12:23:24 +03:00
emailreminders satellite/console: add cutoff to email reminders 2022-06-09 16:45:35 +00:00
restkeys satellite: Rename "acct mgmt api" to "rest api" 2022-04-25 18:51:46 +00:00
wasm web/satellite: add consent screen for oauth 2022-04-27 14:33:07 +00:00
apikeys_test.go satellite/satellitedb: select user_agent in apikeys method GetPagedByProjectID 2022-01-03 11:58:26 -05:00
apikeys.go apigen: create api key endpoint 2022-05-26 16:00:23 +00:00
attribution_test.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
auth.go satellite/console: create new consoleauth service 2022-05-13 16:27:07 +00:00
billinghistoryitem.go satellite/payments: available coupon value feature 2020-06-02 10:00:45 +00:00
buckets.go satellite/metabase: move package one level higher 2021-04-21 15:54:22 +03:00
captcha_test.go satellite/console,web/satellite: Implement hCaptcha 2022-05-13 14:57:45 +00:00
captcha.go satellite/console,web/satellite: Implement hCaptcha 2022-05-13 14:57:45 +00:00
database.go satellite/console: implement WebappSessions db 2022-05-16 15:06:04 +00:00
mfa.go satellite/{console,satellitedb}: Forbid creating users with used email 2021-12-15 17:24:35 +00:00
projectmembers_test.go all: remove old uuid 2020-04-02 19:30:36 +03:00
projectmembers.go all: add missing dots 2020-08-11 17:50:01 +03:00
projects_test.go satellite/{admin,console}: Move tests 2021-10-01 12:25:37 +00:00
projects.go rest-api: endpoint reworkings 2022-04-28 18:17:54 +00:00
projectusagelimits.go satellite/{console,satellitedb}: add project segment limit to user 2021-12-16 08:46:01 +00:00
registrationtoken.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
request.go audit logging: log important user activity 2020-09-07 15:26:34 +00:00
resetpasswordtoken_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
resetpasswordtoken.go all: golangci-lint v1.33.0 fixes (#3985) 2020-12-05 17:01:42 +01:00
service_test.go console: stub endpoints for native token payments 2022-05-23 13:28:00 +00:00
service.go apigen: project delete endpoint 2022-06-07 12:23:24 +03:00
sortdirection.go all: fix comments 2020-07-16 19:13:14 +03:00
users_test.go satellite/console: add cutoff to email reminders 2022-06-09 16:45:35 +00:00
users.go satellite/console: add cutoff to email reminders 2022-06-09 16:45:35 +00:00
validation.go satellite/console: Don't lose ErrValiation error class 2022-02-28 11:00:56 +00:00