-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
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
Trouble with logging out users #23
Comments
|
@juliosouzam Yes, this works but my point is that when a user is currently in the "/home" page I want them to logout only as users, and when is logged as admin and visits "/admin" to show the logout button and only logout as admin on that page. |
|
In my situation it shows two buttons for a logging out with they go to it's define location. But here again I have a problem with your code. When I click on the logout for the admin it shows me this error. I have modified your code a little bit for the users logout. As this code is logging me out from all types of users, I have just added
But again it shows the same error for the user logout. |
This error means what you tried to send a request with different method http. |
In order to logout a specific user or admin, this is already setup in the commit 558bc66. To summarize, in the
In the case of the user, let's look at the
Make sure that you have defined your routes correctly for the user guard. |
Hello. I have trouble logging out different types of users. Here is the code for the nav:
`
If someone knows to do it, please post the solution to this problem. Thank you.
The text was updated successfully, but these errors were encountered: