Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 39fc0921 authored by 65160394's avatar 65160394
Browse files

Project Round 7

parent 21c649e0
Branches
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
<button type="submit">Search</button>
</form>
<% if (session && session.userId) { %> <!-- ตรวจสอบว่า userId อยู่ใน session หรือไม่ -->
<a><%= session.userName %></a> <!-- แสดงชื่อผู้ใช้ -->
<%= session.userName %> <!-- แสดงชื่อผู้ใช้ -->
<a href="/logout">Logout</a>
<% } else { %>
<a href="/login" class="btn-login">Login</a> <!-- ถ้ายังไม่ได้ login -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment