Skip to content

Commit

Permalink
feat(api): set User.limit_domains to zero by default
Browse files Browse the repository at this point in the history
  • Loading branch information
peterthomassen committed Dec 26, 2023
1 parent b9bbc08 commit 78a389a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
MINIMUM_TTL_DEFAULT = int(os.environ["DESECSTACK_MINIMUM_TTL_DEFAULT"])
MAXIMUM_TTL = 86400
AUTH_USER_MODEL = "desecapi.User"
LIMIT_USER_DOMAIN_COUNT_DEFAULT = 15
LIMIT_USER_DOMAIN_COUNT_DEFAULT = 0
USER_ACTIVATION_REQUIRED = True
VALIDITY_PERIOD_VERIFICATION_SIGNATURE = timedelta(
hours=int(os.environ.get("DESECSTACK_API_AUTHACTION_VALIDITY", "0"))
Expand Down
2 changes: 2 additions & 0 deletions api/api/settings_quick_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@
# Carry email backend connection over to test mail outbox
CELERY_EMAIL_MESSAGE_EXTRA_ATTRIBUTES = ["connection"]

LIMIT_USER_DOMAIN_COUNT_DEFAULT = 15

PCH_API = "http://api.invalid"
8 changes: 8 additions & 0 deletions www/webapp/src/views/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,14 @@ export default {
"have not expired in the meantime are now working when opened. Direct login to the web interface and " +
"deSEC DNS operations were not affected.",
},
{
id: 'news-20231226001',
start: new Date(Date.UTC(2023, 12 - 1, 26)), // first day of showing
end: new Date(Date.UTC(2024, 12 - 1, 26)), // first day of not showing
icon: 'mdi-heart-broken',
teaser: "Due to a recent spike in abusive domain registrations, new accounts need manual verification before " +
"domains can be created. Please contact support explaining your use case to enable domain creation.",
},
],
})
}
Expand Down

0 comments on commit 78a389a

Please sign in to comment.