Fix login page linking to other pages within OAuth authorization flow (#36115)
This commit is contained in:
@@ -41,4 +41,5 @@
|
||||
- resource_class.omniauth_providers.each do |provider|
|
||||
= provider_sign_in_link(provider)
|
||||
|
||||
.form-footer= render 'auth/shared/links'
|
||||
- unless within_authorization_flow?
|
||||
.form-footer= render 'auth/shared/links'
|
||||
|
||||
@@ -5,8 +5,11 @@
|
||||
.container-alt
|
||||
.logo-container
|
||||
%h1
|
||||
= link_to root_path do
|
||||
- if within_authorization_flow?
|
||||
= logo_as_symbol(:wordmark)
|
||||
- else
|
||||
= link_to root_path do
|
||||
= logo_as_symbol(:wordmark)
|
||||
|
||||
.form-container
|
||||
= render 'flashes'
|
||||
|
||||
Reference in New Issue
Block a user