Commit Graph
7 Commits
Author SHA1 Message Date
Kenneth Kehl 9ba5e3b917 code review feedback 2024-05-20 12:09:49 -07:00
Kenneth Kehl 8c9721d8e2 notify-api-412 use black to enforce python coding style 2023-08-25 09:12:23 -07:00
Steven Reilly 13d0e46b52 blunt rename of org (#620) 2023-07-12 12:09:44 -04:00
Kenneth KehlandKenneth Kehl 4882595a48 notify-245 update the allowlist for user domains (#510)
Co-authored-by: Kenneth Kehl <@kkehl@flexion.us>
2023-05-19 16:54:27 -04:00
stvnrlly f16b5dd1c4 remove broadcast-related code 2022-10-04 03:04:13 +00:00
Chris Hill-Scott c3091223a9 Be strict about similar email addresses for alerts
We don’t want a single person to have two accounts on an emergency
alerts service because it would let them circumvent the two eyes
approval process.

We can go some way to mitigating against this by stopping people using
common methods that email providers use to alias email addresses. These
are:
- being case insensitive
- being insensitive to the position or number of dots in the local part
  of an email address
- using ‘plus addressing’

We already prevent the first one, this commit adds normalisation which
strip out the second two before doing the comparision with the current
user’s email address.
2021-07-15 13:55:50 +01:00
Ben Thorner 7c27646d6a Extract user utility code into own module
This provides more room for expansion, and reduces the amount of
arbitrary code in the __init__.py file for the new package.
2021-06-09 13:19:05 +01:00