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

@@ -352,6 +352,9 @@ class FreshRSS_ConfigurationSetter {
'min' => 0,
'max' => $max_small_int,
),
'max_registrations' => array(
'min' => 0,
),
);
foreach ($values as $key => $value) {