diff --git a/frontend/index.html b/frontend/index.html
index 8674065..c4d5e53 100755
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -124,7 +124,17 @@
조직 내부 웹페이지 통합 포털
-
+
@@ -335,6 +345,7 @@ async function doLogin() {
}
} catch (e) {
document.getElementById('login-error').textContent = e.message;
+ document.getElementById('login-pass').value = '';
}
}
@@ -579,6 +590,19 @@ async function saveAccess() {
alert('권한이 저장되었습니다.');
}
+// ── Password Toggle ──────────────────────────────────────
+function togglePw(inputId, iconId) {
+ const input = document.getElementById(inputId);
+ const icon = document.getElementById(iconId);
+ if (input.type === 'password') {
+ input.type = 'text';
+ icon.innerHTML = '';
+ } else {
+ input.type = 'password';
+ icon.innerHTML = '';
+ }
+}
+
// ── Utils ────────────────────────────────────────────────
function escHtml(s) { return String(s||'').replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"'); }
function escJs(s) { return String(s||'').replace(/\\/g,'\\\\').replace(/'/g,"\\'"); }