From 60f9f89d90ef0438e7f86fb34a38dd56675451e3 Mon Sep 17 00:00:00 2001 From: Rinjae Date: Wed, 9 Sep 2026 09:51:44 +0900 Subject: [PATCH] =?UTF-8?q?2FA=20=EC=B1=84=EB=84=90=20=EC=A0=95=EB=A0=AC?= =?UTF-8?q?=20=EB=A1=9C=EC=A7=81=20=EC=B6=94=EA=B0=80:=20SMS=EB=A5=BC=20?= =?UTF-8?q?=EC=9A=B0=EC=84=A0=20=ED=91=9C=EC=8B=9C=20=EB=B0=8F=20=EA=B8=B0?= =?UTF-8?q?=EB=B3=B8=20=EC=84=A0=ED=83=9D=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/js/popup/two-factor-auth.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/js/popup/two-factor-auth.js b/src/main/resources/static/js/popup/two-factor-auth.js index 18f47a0..adec644 100644 --- a/src/main/resources/static/js/popup/two-factor-auth.js +++ b/src/main/resources/static/js/popup/two-factor-auth.js @@ -91,7 +91,10 @@ var seg = document.getElementById('tfaSegment'); seg.innerHTML = ''; self._maskedByType = {}; - var channels = info.channels || []; + // SMS를 먼저 표시하고 첫 번째 수단을 기본 선택한다. + var channels = (info.channels || []).slice().sort(function (a, b) { + return (a.type === 'SMS' ? 0 : 1) - (b.type === 'SMS' ? 0 : 1); + }); channels.forEach(function (ch, idx) { self._maskedByType[ch.type] = ch.masked; var btn = document.createElement('button');