diff options
| author | 2015-07-21 15:31:23 +0200 | |
|---|---|---|
| committer | 2015-07-21 15:31:23 +0200 | |
| commit | ac8bd3d2512dd1bfca43d71ea10202ba9e6a82a6 (patch) | |
| tree | dc1758f0444723e8b1ff8ffa73a5aa481f2ac441 /app/views/user | |
| parent | fa76e863c5622609b944542b0255c30f2f67c97e (diff) | |
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
Diffstat (limited to 'app/views/user')
| -rw-r--r-- | app/views/user/manage.phtml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/user/manage.phtml b/app/views/user/manage.phtml index fe1b6618b..a7cbf0795 100644 --- a/app/views/user/manage.phtml +++ b/app/views/user/manage.phtml @@ -3,6 +3,25 @@ <div class="post"> <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a> + <form method="post" action="<?php echo _url('user', 'setRegistration'); ?>"> + <legend><?php echo _t('admin.user.registration.allow'); ?></legend> + + <div class="form-group"> + <label class="group-name" for="max-registrations"><?php echo _t('admin.user.registration.number'); ?></label> + <div class="group-controls"> + <input type="number" id="max-registrations" name="max-registrations" value="<?php echo FreshRSS_Context::$system_conf->limits['max_registrations']; ?>" min="0" data-leave-validation="<?php echo FreshRSS_Context::$system_conf->limits['max_registrations']; ?>"/> + <?php echo _i('help'); ?> <?php echo _t('admin.user.registration.help'); ?> + </div> + </div> + + <div class="form-group form-actions"> + <div class="group-controls"> + <button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button> + <button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button> + </div> + </div> + </form> + <form method="post" action="<?php echo _url('user', 'create'); ?>"> <legend><?php echo _t('admin.user.create'); ?></legend> |
