This is WIP. This adds support for a query parameter "allow_signup" that will suppress the rendering of signup UI elements during the OAuth2 authorisation flow.
This is the same solution as github implements for their "webflow" OAuth2 process. Resolves https://github.com/openstreetmap/openstreetmap-website/issues/5118 ### Description With _allow_signup_ set to "true" there are no visual changes, with _allow_signup_ set to "false" during authorisation, the log in/sign up tabs are removed, including the similar buttons when the hamburger menu is clicked. Screenshots from authorisation with allow_sign=false. <img width="1440" height="3120" alt="Screenshot_1780827477" src="https://github.com/user-attachments/assets/19205201-3e48-42d3-a879-babf7bd83889" /> <img width="1440" height="3120" alt="Screenshot_1780827664" src="https://github.com/user-attachments/assets/b2db0f6d-832d-4e22-99bf-c62559e66122" /> ### How has this been tested? Not at all yet ... this needs to have an integration test. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/7138 -- Commit Summary -- * Add query parameter that to suppress display of signup UI elements -- File Changes -- M app/controllers/concerns/session_methods.rb (3) M app/controllers/sessions_controller.rb (2) M app/views/layouts/_header.html.erb (10) M app/views/sessions/new.html.erb (19) -- Patch Links -- https://github.com/openstreetmap/openstreetmap-website/pull/7138.patch https://github.com/openstreetmap/openstreetmap-website/pull/7138.diff -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/7138 You are receiving this because you are subscribed to this thread. Message ID: <openstreetmap/openstreetmap-website/pull/[email protected]>
_______________________________________________ rails-dev mailing list [email protected] https://lists.openstreetmap.org/listinfo/rails-dev
