Michael Kohl
28dd50e718
Create settings model for rate limits ( #13381 )
...
Co-authored-by: rhymes <rhymes@hey.com>
2021-04-20 11:29:22 +07:00
Andrew Bone
c9e4227c59
crayons-notice accessibility improvements (#13273 )
...
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Add roles to crayons-notice
* Update app/assets/javascripts/initializers/initializeCommentsPage.js.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/badge_achievements/award.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/broadcasts/index.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/configs/_apple_auth_provider_settings.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/configs/_form_submission.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/pages/sponsors.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/shared/authentication/_email_registration_form.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/users/_account.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/shared/authentication/_initial_account_wizard.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/users/edit.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/configs/show.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/configs/show.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/feedback_messages/_feedback_message.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/html_variants/show.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/pages/index.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/pages/index.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/liquids/_user_subscription.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/profile_fields/index.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/tags/edit.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/users/gdpr_delete_requests/index.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/articles/_actions.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/articles/_search.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/articles/show.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/articles/show.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/articles/tag_index.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/comments/_comment_quality_marker.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/comments/deleted_commentable_comment.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/admin/users/_notes.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/dashboards/following_tags.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/devise/invitations/edit.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/events/index.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/listings/_form.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/listings/edit.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
* Update app/views/pages/_editor_frontmatter_help.html.erb
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
Co-authored-by: Suzanne Aitchison <suzanne@forem.com>
2021-04-14 13:32:57 +01:00
Michael Kohl
5406b0576e
Split Settings::Authentication from SiteConfig ( #13095 )
...
* Split Settings::Authentication from SiteConfig
* Move specs
* Sort fields
* Update settings usages
* Update recaptcha usages
* Add data update script
* Update spec
* Rename SiteConfigParams concern
* Fixes, new route, new controller
* Controller and service refactoring
* More controller and service updates
* Spec updates
* More spec fixes
* Move file
* Fix FeedbackMessagesController
* Update admin/configs_spec
* Fix remaining specs in admin/configs_spec
* Fix configs API
* Formatting
* Clean up old service object
* Various fixes
* Update DUS
* Add model argument to admin_config_label
* Fix key name
* Fix specs
* Add distinct request caches for settings classes
* Fix e2e tests
* Fix remaining system spec
* Make DUS idempotent
* Move routes block
* Cleanup
* Switch to ActiveSupport::CurrentAttributes
* Pinned rails-settings-cached
* Update e2e test
* Update lib/data_update_scripts/20210316091354_move_authentication_settings.rb
Co-authored-by: rhymes <rhymes@hey.com>
* Add guard to DUS
* Temporarily re-add two SiteConfig fields
* Fix config show view
Co-authored-by: rhymes <rhymes@hey.com>
2021-04-12 09:41:09 +02:00
Nick Taylor
f6278a9106
Add Cypress to Travis ( #11867 )
...
* Added test run artifacts to git ignore.
* Added Cypress run to Travis.
* Added the start-server-and-test package.
* Added e2e ci scripts.
* Split up commands.
* Testing e2e after rspecs on same build node.
* Move Cypress back to node 0 for Knapsack.
* Added folders for build artifacts for failed E2E tests.
* Simplified e2e for CI
* Using knapsack-pro-cypress now.
* Added data-testid to sign up form for tests.
* Added forem secret for CI
* Updated initial admin fixture.
* Reworked test to be a signup test. wip.
* Added cypress file upload package.
* added fixture for admin profile image.
* Updated forem secret for tests.
* Added Cypress file upload to Cypress commands.
* Changed test to initial sign up for the first admin user.
* Fixed test to ensure there are no signup errors.
* Added some logging to see what's up.
* Added some comments to the test.
* Set Chrome web security to false to prevent CORS errors.
Co-authored-by: rhymes <rhymes@hey.com>
2020-12-15 21:26:34 -05:00
Fernando Valverde
b02262c563
Split ReCaptcha service and use verbs instead of pronouns ( #11706 )
...
* Split ReCaptcha service and use verbs instead of pronouns
* Inline comment rewrite for clarify
* after? > >
* Use explicit role check for the user instead of .auditable?
2020-12-02 16:50:42 -06:00
Fernando Valverde
494af84e83
Refactor reCaptcha code and bypass in report abuse for trustworthy users only ( #10502 )
...
* Bypass recaptcha for authenticated users abuse reports
* Moves bypass_recaptcha? to helper method to have one definition of the criteria for this
* User must be 1 month old at least in order to bypass_recaptcha?
* Fixes test
* Better spec message
* Bypasses auditable users
* Adds better test coverage over recaptcha bypass cases
* include Helper removed from FeedbackMessagesController
* Adds some inline comments for clarity and banned check
2020-12-02 08:55:47 -06:00
Ben Halpern
f3a69bbd84
Allow Forems to specify which domains are allowed for registration ( #11442 )
...
* Allow authors to restrict which emails can sign up
* Add form and tests
* Check for email presence in allowed email flow
* Fix test domains
* Fix codeclimate issue
2020-11-17 08:43:46 -05:00
Vaidehi Joshi
d008f89399
Forem creator feature flag + onboarding signup form ( #11031 )
...
* Add initial forem creator signup form
* Fix label typos in various stylesheets :)
2020-10-23 10:52:21 -04:00
Alex
7e9447ccd1
Add forem_owner_secret to params ( #10938 )
...
* Add forem_owner_secret to params
* Add forem_owner_secret to safe_params_list
2020-10-19 16:43:21 -04:00
Arit Amana
8e57cf17ad
[Team Email Login] Admin enable/disable recaptcha during email signup ( #10846 )
...
* Initial Implementation
* Complete hookup of recaptcha guard
* Write tests for recaptcha during email signup
* Addressing PR changes 1
* Create helper method and write specs
* fix bug
2020-10-19 16:20:18 -04:00
Ben Halpern
7ba7d9fc46
Add logic for asking for FOREM_OWNER_SECRET to be present on first user sign up if set by system ( #10108 )
...
* Add logic for requiring FOREM_OWNER_SECRET to be present
* Fix test logic
2020-08-31 16:41:30 -04:00
Ben Halpern
dba151915b
[deploy] Allow initial user to sign up and configure app ( #10073 )
...
* Allow initial user to sign up and configure app
* Fix added value unneeded
* Make siteconfig public in tests
* Remove deprecated method and adjust seed default
* Add new controllers not to redirect for public
* Modify tests
* Edit test defaults
* Fix linting
* Add starter mode to seed file
2020-08-31 12:54:22 -04:00
Ben Halpern
0dd04ea45a
Create initial "register by email and password" beta/MVP in prep for "setup mode" ( #10039 )
...
* Modify registrations controller
* A bit of progress
* More work
* a bit pf progress on confirmation emails
* Get basic functionality in place
* Remove comments
* First basic test
* Add tests
* Fix code styles
* Remove sessions spec
* Remove sessions spec
* Remove extra markup
2020-08-28 09:46:56 -04:00