Add a max_registrations limit

- Allow user to create accounts (not implemented)
- Admin only can set this limit

See https://github.com/FreshRSS/FreshRSS/issues/679
This commit is contained in:
Marien Fressinaud
2015-07-21 15:31:23 +02:00
parent fa76e863c5
commit ac8bd3d251
4 changed files with 50 additions and 0 deletions

View File

@@ -77,6 +77,10 @@ return array(
# Max number of categories for a user.
'max_categories' => 16384,
# Max number of accounts that anonymous users can create
# 0 for an unlimited number of accounts
# 1 is to not allow user registrations (1 is corresponding to the admin account)
'max_registrations' => 1,
),
# Options used by cURL when making HTTP requests, e.g. when the SimplePie library retrieves feeds.