Skip to content

Commit

Permalink
delete sessions fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pik-nik committed Mar 17, 2023
1 parent 750f081 commit 01497a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
<% if(isLoggedIn()) { %>
<li class="logged_in">
<div>
<a href="/users/<%=currentUser.user_id%>"><img src="<%=currentUser.profile_photo%>" alt=""></a>
<p><a href="/users/<%=currentUser.user_id%>" class="current_username"><%=currentUser.username%></a></p>
<a href="/users/<%=currentUser.user_id%>"><img src="<%=currentUser.profile_photo%>" alt=""></a>
<p><a href="/users/<%=currentUser.user_id%>" class="current_username"><%=currentUser.username%></a></p>
</div>
<div>
<div class="btns_logged_in">
<form action="/sessions" method="post">
<input type="hidden" name="_method" value="delete"/>
<form action="/sessions?_method=DELETE" method="post">
<!-- <input type="hidden" name="_method" value="delete"/> -->
<button>logout</button>
</form>
<button> <a href="/users/<%=currentUser.user_id%>/edit">settings</a> </button>
Expand Down

0 comments on commit 01497a1

Please sign in to comment.