비밀번호 maxlength 4 설정
This commit is contained in:
parent
33cd40038f
commit
fe9fba3904
@ -24,6 +24,7 @@
|
|||||||
class="form-control"
|
class="form-control"
|
||||||
:value="password"
|
:value="password"
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
|
maxlength="4"
|
||||||
placeholder="비밀번호 입력"
|
placeholder="비밀번호 입력"
|
||||||
@input="filterInput"
|
@input="filterInput"
|
||||||
/>
|
/>
|
||||||
@ -119,7 +120,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
const displayName = computed(() => {
|
const displayName = computed(() => {
|
||||||
return props.nickname? props.nickname: props.comment.author;
|
return props.nickname ? props.nickname : props.comment.author;
|
||||||
});
|
});
|
||||||
|
|
||||||
// emits 정의
|
// emits 정의
|
||||||
|
|||||||
@ -43,7 +43,7 @@
|
|||||||
@input="clearAlert('nickname')"
|
@input="clearAlert('nickname')"
|
||||||
/>
|
/>
|
||||||
<!-- 닉네임 경고 메시지 -->
|
<!-- 닉네임 경고 메시지 -->
|
||||||
<div v-if="nicknameAlert" class="position-absolute text-danger small top-100 start-0" >
|
<div v-if="nicknameAlert" class="position-absolute text-danger small top-100 start-0">
|
||||||
{{ nicknameAlert }}
|
{{ nicknameAlert }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -57,7 +57,11 @@
|
|||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
v-model="password"
|
v-model="password"
|
||||||
placeholder="비밀번호"
|
placeholder="비밀번호"
|
||||||
@input="clearAlert('password')"
|
maxlength="4"
|
||||||
|
@input="
|
||||||
|
password = password.replace(/\s/g, '');
|
||||||
|
clearAlert('password');
|
||||||
|
"
|
||||||
/>
|
/>
|
||||||
<!-- 비밀번호 경고 메시지 -->
|
<!-- 비밀번호 경고 메시지 -->
|
||||||
<div v-if="passwordAlert2" class="position-absolute text-danger small top-100 start-0">
|
<div v-if="passwordAlert2" class="position-absolute text-danger small top-100 start-0">
|
||||||
@ -145,6 +149,7 @@
|
|||||||
|
|
||||||
if (!$common.isNotEmpty(password.value)) {
|
if (!$common.isNotEmpty(password.value)) {
|
||||||
passwordAlert2.value = '비밀번호를 입력해주세요.';
|
passwordAlert2.value = '비밀번호를 입력해주세요.';
|
||||||
|
password.value = '';
|
||||||
isValid = false;
|
isValid = false;
|
||||||
} else {
|
} else {
|
||||||
passwordAlert2.value = '';
|
passwordAlert2.value = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user