PageSourceSearch

https://dontdraw.com/_js/getUserLoginAction.js?v=12:12:24

js dontdraw.com collected 2026-10-06 03:12:35 UTC 1,555 bytes, 69 lines download raw bytes

1async function logSubmit(e) {
2	e.preventDefault();
3
4	const Form = e.target;
5	const errMsg = document.getElementById("errMsg");
6
7	// 오류 메시지 초기화
8	clearAllerror();
9
10	if (chkFrm(Form)) {
11		let formData = new FormData(Form);
12
13		// FCM 토큰 가져오기
14		if (document.getElementById("pageMode").value == "L") {
15			const fcmToken = await getFcmToken();
16			if (fcmToken) {
17				formData.append('fcmToken', fcmToken);
18			}
19		}
20
21		// 폼 데이터 전송
22		try {
23			const response = await fetch('/_userController/getLoginAction', {
24				method: 'POST',
25				body: formData
26			});
27
28			const data = await response.json();
29			if (data.st === true) {
30
31				if (data.passwordReset) {
32					alert(data.msg);
33				}
34				location.href = data.actionUrl;
35
36			} else {
37				showError(errMsg, data.msg);
38			}
39		} catch (error) {
40			console.error('Error:', error);
41			alert("처리중 오류가 발생했습니다");
42		}
43	}
44}
45
46const loginForm = document.getElementById("loginForm");
47if (loginForm) {
48	loginForm.addEventListener("submit", logSubmit);
49}
50
51const idFindForm = document.getElementById("idFindForm");
52if (idFindForm) {
53	idFindForm.addEventListener("submit", logSubmit);
54}
55
56const pwFindForm = document.getElementById("pwFindForm");
57if (pwFindForm) {
58	pwFindForm.addEventListener("submit", logSubmit);
59}
60
61const inputs = document.querySelectorAll('.form-control');
62if (inputs) {
63	inputs.forEach(input => {
64		input.addEventListener('input', function() {
65			clearError(input); 
66		});
67	});
68}
69

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.