You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
Damien Goutte-Gattat fc4a8c2980
Allow blocking some email domains from registering an account (#14667)
Gitea allows to whitelist email domains so that only email addresses from certain domains are allowed to register an account, but does not currently allows to do the opposite: blacklisting email domains so that addresses from certain domains are *forbidden* to register an account.

The idea has been briefly mentioned in the discussion about issue #6350, but never implemented. This PR does that.

The rationale is that, in my experience of running a Gitea instance, *a single email domain* is responsible for *most* of the spam accounts, and for *all* of the spam accounts that manage to get past the email confirmation step. So on top of the other spam mitigation measures already available (email confirmation, CAPTCHA, etc.), having the option to block a particularly annoying domain would be helpful.

close #13628
3 years ago
..
analyze Exclude generated files from language statistics (#11653) 4 years ago
auth Move middlewares to web/middleware (#14480) 3 years ago
avatar Avatars and Repo avatars support storing in minio (#12516) 4 years ago
base Add some Unit-Tests (#14500) 3 years ago
cache [Vendor] Update go-redis to v8.5.0 (#13749) 3 years ago
charset Ensure that the detected charset order is set in chardet test (#12574) 4 years ago
context [API] Add pagination to ListBranches (#14524) 3 years ago
convert Add dismiss review feature (#12674) 3 years ago
cron Cron job to cleanup hook_task table (#13080) 3 years ago
doctor Prevent adding nil label to .AddedLabels or .RemovedLabels (#14623) 3 years ago
emoji Fix emoji detection in certain cases (#12320) 4 years ago
eventsource Move EventSource to SharedWorker (#12095) 4 years ago
forms Allow blocking some email domains from registering an account (#14667) 3 years ago
generate Add gitea-vet (#10948) 4 years ago
git Do not assume all 40 char strings are SHA1s (#14624) 3 years ago
gitgraph [Refactor] CombinedStatus and CommitStatus related functions & structs (#14026) 4 years ago
graceful Fix windows build error (#14263) 4 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Use existing analyzer module for language detection for highlighting (#13522) 4 years ago
httpcache Use IsProd instead of testing if it's equal. (#14336) 4 years ago
httplib Add golangci (#6418) 5 years ago
indexer [Feature] add precise search type for Elastic Search (#12869) 3 years ago
lfs Move macaron to chi (#14293) 3 years ago
log Update docs and comments to remove macaron (#14491) 3 years ago
markup Prevent panic on fuzzer provided string (#14405) 4 years ago
matchlist Add Allow-/Block-List for Migrate & Mirrors (#13610) 4 years ago
metrics Prometheus endpoint (#5256) 6 years ago
migrations Fix rate limit bug when downloading assets on migrating from github (#14564) 3 years ago
nosql [Vendor] Update go-redis to v8.5.0 (#13749) 3 years ago
notification Add dismiss review feature (#12674) 3 years ago
options Add StatDir and replace com.StatDir (#14099) 4 years ago
password Check passwords against HaveIBeenPwned (#12716) 4 years ago
pprof Add golangci (#6418) 5 years ago
private Fix send mail (#13312) 4 years ago
process Reduce data races (#14549) 3 years ago
public Update docs and comments to remove macaron (#14491) 3 years ago
queue Prevent race in PersistableChannelUniqueQueue.Has (#14651) 3 years ago
recaptcha hCaptcha Support (#12594) 4 years ago
references Add mentionable teams to tributeValues and change team mention rules to gh's style (#13198) 4 years ago
repofiles enhancement: add signoff option in commit form (#14516) 3 years ago
repository Ensure memcache TTL cannot be over 30 days (#14592) 3 years ago
secret Attachments: Add extension support, allow all types for releases (#12465) 4 years ago
session [Vendor] Update go-redis to v8.5.0 (#13749) 3 years ago
setting Allow blocking some email domains from registering an account (#14667) 3 years ago
ssh Internal ssh server respect Ciphers, MACs and KeyExchanges settings (#14523) 3 years ago
storage Fix Storage mapping (#13297) 4 years ago
structs rm gogs relict (#14665) 3 years ago
svg Fix filepath basename on Windows for SVG bindata (#12241) 4 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
task Migrations: Use Process Manager to create own Context (#13792) 4 years ago
templates Prevent template renderer from rendering error (#14646) 3 years ago
test Move middlewares to web/middleware (#14480) 3 years ago
timeutil Fix display since time round (#14226) 3 years ago
translation Fix locale init (#14582) 3 years ago
upload Update golangci-lint to version 1.31.0 (#13102) 4 years ago
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
user Add gitea-vet (#10948) 4 years ago
util [API] Add pagination to ListBranches (#14524) 3 years ago
validation Move macaron to chi (#14293) 3 years ago
web Move middlewares to web/middleware (#14480) 3 years ago