]> git.openstreetmap.org Git - rails.git/commit
Add proper referrer for authorization scenario
authorMilan Cvetkovic <mcvetkovic@microsoft.com>
Mon, 27 May 2024 12:38:06 +0000 (12:38 +0000)
committerMilan Cvetkovic <mcvetkovic@microsoft.com>
Mon, 27 May 2024 13:31:20 +0000 (13:31 +0000)
commit22bceff40bd821486f5066403d48c8f47b61ea8f
tree7cb70184afa149f08b91aae35b49d4e52919431d
parentaffa9bbf15a8c7206c8f25b50904ddf2df1d2aa0
Add proper referrer for authorization scenario

Fixes the following:
- `users_controller#new` loses referer in authorization scenario, when it was invoked after social signup succeded
- the second invocation of `auth_success`, triggered by re-authorization initiated from `users_controller#create`
  does not have referrer field set
- as a result, the final welcome screen does not offer final authorization, and drops into ID instead

Introduced by #4758.
app/controllers/users_controller.rb