이메일 소문자 처리
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user