File tree Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Expand file tree Collapse file tree 4 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 3131 = f.password_field :password_confirmation,
3232 class: %w[pt-input pt-fill] + error_classes,
3333 autocomplete: "new-password"
34-
3534 = f.submit t('.sign_up'), class: %w[pt-intent-primary]
3635 - if ENV['TEMPORARY_UNCONFIRMED_ACCESS'] == 'false'
37- %a .pt-button.pt-icon-log-in.oauth-icon-google {role: 'button',
38- href: omniauth_authorize_path('authentication_strategy', 'google')}
36+ %a .pt-button.pt-icon-log-in.oauth-icon-google { role: 'button', tabindex: '0',
37+ href: omniauth_authorize_path('authentication_strategy', 'google') }
38+ = t('devise.shared.links.sign_in_with_provider', provider: 'Google')
39+ - else
40+ %a .pt-button.pt-icon-log-in.oauth-icon-google.pt-disabled { role: 'button', tabindex: '-1',
41+ href: 'javascript:void(0)',
42+ style: 'pointer-events: none; opacity: 0.6;' }
3943 = t('devise.shared.links.sign_in_with_provider', provider: 'Google')
4044
4145 = render " devise/shared/links"
Original file line number Diff line number Diff line change 2020 %a .pt-button.pt-icon-log-in.oauth-icon-google { role: 'button', tabindex: '0',
2121 href: omniauth_authorize_path('authentication_strategy', 'google') }
2222 = t('devise.shared.links.sign_in_with_provider', provider: 'Google')
23+ - else
24+ %a .pt-button.pt-icon-log-in.oauth-icon-google.pt-disabled { role: 'button', tabindex: '-1',
25+ href: 'javascript:void(0)',
26+ style: 'pointer-events: none; opacity: 0.6;' }
27+ = t('devise.shared.links.sign_in_with_provider', provider: 'Google')
2328
2429= render " devise/shared/links"
Original file line number Diff line number Diff line change 1111
1212# Set release version
1313ENV [ 'RELEASE' ] = 'v2.2.0' # TODO: experiment doing github releases again
14+
1415# Determine if we're in staging environment
1516ENV [ 'STAGING' ] = ( ENV [ 'BASE_URL' ] &.include? ( 'staging' ) ) . to_s
17+
1618# Allow temporary unconfirmed access in staging or development
1719ENV [ 'TEMPORARY_UNCONFIRMED_ACCESS' ] ||=
18- ( ENV [ 'STAGING' ] == 'true' || Rails . env . development? ) . to_s
19-
20- puts [ ENV [ 'RELEASE' ] , ENV [ 'STAGING' ] , ENV [ 'TEMPORARY_UNCONFIRMED_ACCESS' ] ] . inspect
20+ ( ENV [ 'STAGING' ] == 'true' ) . to_s
2121
2222module Orchard
2323 class Application < Rails ::Application
@@ -35,6 +35,5 @@ class Application < Rails::Application
3535 unless ENV [ 'SIDEKIQ_CONCURRENCY' ] . present?
3636 config . middleware . use Rack ::Deflater
3737 end
38-
3938 end
4039end
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ services:
1818 SIDEKIQ_CONCURRENCY : 1
1919 RUBY_YJIT_ENABLE : 1
2020 DOCKER_DEV : true
21+ TEMPORARY_UNCONFIRMED_ACCESS : false
2122 BASE_URL : http://localhost:3000
2223 PORT : 3000
2324 ports :
You can’t perform that action at this time.
0 commit comments