We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a logout route that logs a user out and redirects to a given url
The text was updated successfully, but these errors were encountered:
as a workaround i use a logout link that does a ajax call to the backends logout route:
<!-- In my menu.twig --> <a class="nav-link" href="#" onclick="logout()">logout({{user.username}})</a>
function logout() { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.status == 200) { window.location.reload(); } }; xhttp.open("GET", "/bolt/logout", true); xhttp.send(); }
Sorry, something went wrong.
Perhaps related to Issue #11 @I-Valchev? Could also check the chain of PRs made, particularly PR #10.
No branches or pull requests
Add a logout route that logs a user out and redirects to a given url
The text was updated successfully, but these errors were encountered: