Changes between Version 17 and Version 18 of WikiStart


Ignore:
Timestamp:
Jun 14, 2022, 3:33:02 PM (2 months ago)
Author:
xmedved1
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v17 v18  
    195195If you run Crystal on a different hostname than Bonito, you may need to setup CORS headers appropriately, see the top of the `run.cgi` file.
    196196
    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`.
     197Bonito provides simple registration feature which configuration is in `registration.cgi`. By default the registration feature is disabled.
     198
     199To 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
     203The 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
     209Files 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
    198214
    199215