login_test.go
3.36 KB
-
Fix: Break redirect loop if oauth_auto_login = true and OAuth login fails (#17974) · 78ca55f3
* Add tests for login view * Fix OAuth auto login redirect loop login_error cookie is only set when the OAuth login fails for some reason. Therefore, the login view should return immediately if a login_error cookie exists before trying to login the user using OAuth again. * Fix test Use 'index-template' instead of 'index' for testing * Add some comments
Sofia Papagiannaki committed