Skip to content

Commit c091323

Browse files
Disable Devise sign ups if Guisso is enabled
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.
1 parent 115f7f8 commit c091323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
scope "(:locale)", :locale => /#{Locales.available.keys.join('|')}/ do
3131

32-
devise_for :users, :controllers => {
32+
devise_for :users, :skip => [ ( :registrations if Guisso.enabled? ) ], :controllers => {
3333
:registrations => 'users/registrations',
3434
omniauth_callbacks: "omniauth_callbacks",
3535
sessions: "sessions"

0 commit comments

Comments
 (0)