]> cat aescling's git repositories - mastodon.git/commit
Add canonical e-mail blocks for suspended accounts (#16049)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 17 Apr 2021 01:14:25 +0000 (03:14 +0200)
committerGitHub <noreply@github.com>
Sat, 17 Apr 2021 01:14:25 +0000 (03:14 +0200)
commitb3ceb3dcc4df62803aa967d7aecee686973a8996
treedc34486813237852b90cc81b26c4e361323c7757
parent170e05db127c9f357183239a5543bdfc9525680d
Add canonical e-mail blocks for suspended accounts (#16049)

Prevent new accounts from being created using the same underlying
e-mail as a suspended account using extensions and period
permutations. Stores e-mails as a SHA256 hash
app/helpers/email_helper.rb [new file with mode: 0644]
app/models/account.rb
app/models/canonical_email_block.rb [new file with mode: 0644]
app/validators/blacklisted_email_validator.rb
db/migrate/20210416200740_create_canonical_email_blocks.rb [new file with mode: 0644]
db/schema.rb
spec/fabricators/canonical_email_block_fabricator.rb [new file with mode: 0644]
spec/models/canonical_email_block_spec.rb [new file with mode: 0644]
spec/validators/blacklisted_email_validator_spec.rb