mirror of https://gitlab.com/bashrc2/epicyon
Setting maximum registrations
parent
bb8bd7153d
commit
a050f71a84
|
@ -6368,6 +6368,13 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
registrations_open = fields['regOpen']
|
registrations_open = fields['regOpen']
|
||||||
set_config_param(base_dir, 'registration',
|
set_config_param(base_dir, 'registration',
|
||||||
'open')
|
'open')
|
||||||
|
remaining = \
|
||||||
|
get_config_param(base_dir,
|
||||||
|
'registrationsRemaining')
|
||||||
|
if not remaining
|
||||||
|
set_config_param(base_dir,
|
||||||
|
'registrationsRemaining',
|
||||||
|
10)
|
||||||
self.server.registration = True
|
self.server.registration = True
|
||||||
else:
|
else:
|
||||||
if registrations_open:
|
if registrations_open:
|
||||||
|
|
Loading…
Reference in New Issue