이메일 소문자 처리

This commit is contained in:
현성필
2025-12-04 16:34:18 +09:00
parent 5965404e4f
commit 1d2eaba24e
7 changed files with 36 additions and 16 deletions
@@ -160,6 +160,9 @@
// Show loading state
$('#loginLoading').addClass('active');
// 이메일(아이디) 소문자 변환 적용
form.id.value = form.id.value.toLowerCase();
if ($('#checkId').is(':checked')) {
setCookie('saveid', $('#id').val(), new Date(new Date().getTime() + 1000 * 3600 * 24 * 30));
} else {
@@ -39,10 +39,10 @@
</body>
<th:block>
<script th:fragment="commonUserInfoScript" th:inline="javascript">
// 이메일 조합 함수
// 이메일 조합 함수 (소문자 변환 적용)
function combineEmail() {
let emailId = $('#userId').val();
let domain = $('#domain').val();
let emailId = $('#userId').val().toLowerCase();
let domain = $('#domain').val().toLowerCase();
let combined = emailId + '@' + domain;
$('#loginId').val(combined);
}