19540701b622a439dfbcc81b35a2a44174cf8dca
UrlHelper::dir() always returns a trailing slash, so the session cookie was scoped to "/kanboard/". That cookie is not sent back for "/kanboard", which is exactly the url the bundled web.config and .htaccess serve the application on: both rewrite to index.php whenever the request is not a file, so the directory url is never redirected to its trailing-slash form. The first login then stores redirectAfterLogin="/kanboard", redirects there after a successful check, arrives without the session cookie and bounces back to the login form with no error message. Use the directory without the trailing slash, which is what the browser would have picked as the default cookie path anyway and still matches every url below it.
Description
My contributions to kanboard/kanboard: 7 commits, 4 merged PRs
59 KiB
0 Stars
1 Watchers
0 Forks
Languages
PHP
100%