mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-12 21:08:46 +00:00
비밀번호 변경시 비밀번호 확인 필드 추가
This commit is contained in:
@@ -6,8 +6,14 @@
|
|||||||
|
|
||||||
let oldPassword = $state("");
|
let oldPassword = $state("");
|
||||||
let newPassword = $state("");
|
let newPassword = $state("");
|
||||||
|
let confirmPassword = $state("");
|
||||||
|
|
||||||
const changePassword = async () => {
|
const changePassword = async () => {
|
||||||
|
if (newPassword !== confirmPassword) {
|
||||||
|
// TODO: Alert
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (await requestPasswordChange(oldPassword, newPassword)) {
|
if (await requestPasswordChange(oldPassword, newPassword)) {
|
||||||
await goto("/menu");
|
await goto("/menu");
|
||||||
}
|
}
|
||||||
@@ -30,6 +36,7 @@
|
|||||||
|
|
||||||
<TextInput bind:value={oldPassword} placeholder="기존 비밀번호" type="password" />
|
<TextInput bind:value={oldPassword} placeholder="기존 비밀번호" type="password" />
|
||||||
<TextInput bind:value={newPassword} placeholder="새 비밀번호" type="password" />
|
<TextInput bind:value={newPassword} placeholder="새 비밀번호" type="password" />
|
||||||
|
<TextInput bind:value={confirmPassword} placeholder="새 비밀번호 확인" type="password" />
|
||||||
</TitledDiv>
|
</TitledDiv>
|
||||||
<BottomDiv>
|
<BottomDiv>
|
||||||
<Button onclick={changePassword} class="w-full">비밀번호 바꾸기</Button>
|
<Button onclick={changePassword} class="w-full">비밀번호 바꾸기</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user