Skip to content

Commit

Permalink
Fix UNABLE_REGISTERABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
yoandrypa committed May 22, 2023
1 parent 5ba42c0 commit 8433800
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/devise/sessions/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
= 'or continue with'
= render partial: 'cenit/open_id/form', locals: { redirect_uri: "#{Cenit.homepage}#{session_path(resource_name)}", providers: providers }

= render partial: 'devise/shared/create_link' unless ENV['UNABLE_REGISTERABLE'].to_b
= render partial: 'devise/shared/create_link'
2 changes: 1 addition & 1 deletion app/views/devise/shared/_create_link.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- unless (ENV['UNABLE_SIGN_IN_AND_SIGN_UP_DEVISE'] || false).to_b
- unless ENV['UNABLE_REGISTERABLE'].to_b || ENV['UNABLE_SIGN_IN_AND_SIGN_UP_DEVISE'].to_b
.question.flex.full-width.justify-content-center
.label
= "No account?"
Expand Down

0 comments on commit 8433800

Please sign in to comment.