197 | | Bonito provides simple registration feature which configuration is in `registration.cgi`. The registration is disabled by default, add `URL_REGISTER_NEW_USER` endpoint in Crystal (`config.js`) and set `self._enable_registration = True` in `registration.cgi` to enable self-registration. The registration module allows also approve/deny access requests via e-mail by admins specified in `/var/lib/bonito/registration/admins`. |
| 197 | Bonito provides simple registration feature which configuration is in `registration.cgi`. By default the registration feature is disabled. |
| 198 | |
| 199 | To enable self-registration you have to: |
| 200 | * add `URL_REGISTER_NEW_USER` endpoint into Crystal (`config.js`) |
| 201 | * set `self._enable_registration` inside `registration.cgi` to ` True` |
| 202 | |
| 203 | The registration module works in three different modes: |
| 204 | * Disabled - no self registration is allowed |
| 205 | * Enabled with no allow/deny feature - user can make a registration and enter into the system |
| 206 | * Enabled with allow/deny feature - after user make registration an access request e-mail is send to admins that have to allow or deny the user access |
| 207 | * requires to set variables `_smtp_server` and `_from_mail` in `registration.cgi` appropriately |
| 208 | |
| 209 | Files related to registration: |
| 210 | * `/var/lib/bonito/registration/admins` - list of all admin users that can allow or deny new registration - login per line |
| 211 | * `/var/lib/bonito/registration/users` - list of all users (including admins, approved and denied users) - tab separated values: login, full_name, e-mail, address, phone number |
| 212 | * `/var/lib/bonito/registration/invalid_users` - list of denied users - login per line |
| 213 | |