Read settings from configuration file
A configuration file should be available to set the following:
-
Creation of messages via POST route -
New message page -
Authentication methods allowed -
Message validation -
Mininum & maximum username length ([1-256) characters, default [3, 255]) -
Allow message names to have any characters in them -
Minimum & maximum channel length ([2-256) characters, default [4, 255]) -
There is no max channel length, as it is sent by the server. However, I should check to see if it is > 255 characters, and if so, use a text field instead of a string field for the channel name. Same goes for user names. A minimum of 2 characters for the channel name is implied because you have to have (# or &), followed by 1 or more characters.
-
-
Does channel require a # and/or & sign preceeding it (if so, it should be checked for to ensure a 2nd # is not included if the user already specified that) -
Minimum & maximum message length ([1-inf) characters, default [1, 500]) -
Minimum & maximum edit/delete justification length ([0-256) characters, default [1, 255])
-
-
What ChatLog attributes can be modified (channel, sender, message, date) -
Allowed results per page users can choose in settings (default [10, 25, 50, 100]) -
If IDs can be filtered on in advanced search & in params (start_id, end_id) -
Notification settings -
If users can disable emails for password changes to primary email -
If users can disable emails for password resets to primary email -
If users can disable emails for adding/removing SSO providers to primary email -
If users can disable emails for 2FA methods to primary email -
If users can disable emails for admin messages to primary email
-
-
TOTP QR code issuer name (currently it is "IRC Log Viewer (Dev):") -
config.action_mailer.default_url_options
(specifically the host) in config/environments/production.rb and test.rb. -
I have the API keys in a sample YAML file, but I think I should move those to the secrets.rb
file inside the config directory (and make asecrets.sample.rb
file). -
Minimum password length for traditional accounts (I'll also need to update the I18n YAML files to somehow use this, or change it to require a parameter)
Edited by Luna Lucadou