fix: #14385 (direct login infinite redirect loop)

WP [#14385](https://www.openproject.org/work_packages/14385)
`locals` are usually only used for partials. when rendering normal views you can use instance variables.