Skip to content

Commit

Permalink
Disable Devise sign ups if Guisso is enabled
Browse files Browse the repository at this point in the history
If we offload authorisations to Guisso, then avoid local users sign ups.
Guisso is CAPTCHA-protected, so we'd rather use it for production than
add CATPCHA protections to each InSTEDD app.
  • Loading branch information
matiasgarciaisaia committed Jan 23, 2024
1 parent 656fb0d commit ec59393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

match '/' => 'home#index', :as => 'home'

devise_for :accounts, controllers: {omniauth_callbacks: "omniauth_callbacks" , sessions: "sessions"}
devise_for :accounts, :skip => [ ( :registrations if Guisso.enabled? ) ], controllers: {omniauth_callbacks: "omniauth_callbacks" , sessions: "sessions"}
guisso_for :account

resources :feeds, controller: :feed_server do
Expand Down

0 comments on commit ec59393

Please sign in to comment.