Gitlab@Informatics

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

Project Round 2

parent 9d14ecef
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@
<a href="/contact">Contact</a>
<% if (session.userId) { %> <!-- ตรวจสอบว่า userId อยู่ใน session หรือไม่ -->
<a href="/profile"><%= session.userId %></a> <!-- แสดงชื่อผู้ใช้ -->
<a href="/profile"><%= session.userName %></a> <!-- แสดงชื่อผู้ใช้ -->
<a href="/logout">Logout</a>
<% } else { %>
<a href="/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