fix: 로그인 에러 메시지 표시 및 DB 컬럼 수정

- 로그인 화면에서 URL error 파라미터 표시
- wr_login_history INSERT에서 login_success 컬럼 제거
This commit is contained in:
2026-01-11 23:50:09 +09:00
parent 0fe39884fa
commit 71c4ce5401
3 changed files with 45 additions and 97 deletions

View File

@@ -89,8 +89,8 @@ export default defineEventHandler(async (event) => {
// 5. 로그인 이력 기록
await execute(`
INSERT INTO wr_login_history (employee_id, login_type, login_ip, login_at, login_success, login_email)
VALUES ($1, 'SYNOLOGY', $2, NOW(), true, $3)
INSERT INTO wr_login_history (employee_id, login_type, login_ip, login_at, login_email)
VALUES ($1, 'SYNOLOGY', $2, NOW(), $3)
`, [employee.employee_id, ip, synologyEmail])
// 6. 세션 생성