관리자 로그인 이력 수정

This commit is contained in:
주수현
2025-06-23 17:22:01 +09:00
parent 6ed0592108
commit 73f3448515
9 changed files with 46 additions and 20 deletions

View File

@@ -7,13 +7,15 @@
<insert id="insert" parameterType="app.module.core.config.adapters.persistence.entity.LoggedInUser">
INSERT INTO logged_in_user
(
app_type,
id,
app_type,
login_id,
clientip,
last_logged_in_at
)
VALUES
(
nextval('logged_in_user_seq'),
#{appType},
#{id},
#{clientIP},
@@ -27,7 +29,7 @@
clientip = #{clientIP},
last_logged_in_at = #{lastLoggedInAt}
WHERE app_type = #{appType}
AND id = #{id}
AND login_id = #{id}
</update>
</mapper>

View File

@@ -133,7 +133,7 @@
</ul>
<div class="header-right">
<p class="user"><strong sec:authentication="name">로그인 사용자명</strong>님 안녕하세요</p>
<span class="user-ip">111.11.111.111</span>
<span class="user-ip" th:text="${@adminUtil.getLoginUserLastIp}">111.11.111.111</span>
<button class="btn-logout" onclick="location.href='/logout'">로그아웃</button>
</div>
</div>