forked from hotsh/rstat.us
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make logging out be a POST request so that the CSRF token is checked
- Loading branch information
1 parent
a799e4b
commit 1fe0ac6
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
- if current_user | ||
%ul.menu#profile_menu | ||
!= menu_item("Profile", "/users/#{current_user.username}") | ||
!= menu_item("Log Out", "/logout") | ||
%li.log_out | ||
= link_to "Log Out", logout_path, :method => :post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters