From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server-vie001.gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_DBL_BLOCKED_OPENDNS, URIBL_ZEN_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1741375609; bh=hyDGkT6YxeQpQxRML+PX+6LiyrKn1MTF7ZXXzEHfScA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding:Message-ID:Date:From: Reply-To:Subject:To:Cc:In-Reply-To:References:Resent-Date: Resent-From:Resent-To:Resent-Cc:User-Agent:Content-Type: Content-Transfer-Encoding; b=r7mItCurv+kF0YeCFzJ7Vnz6PzpJvotkKCdm6rC9JkCnpZ7D+ByhG6UJpNu7i/5Hl 3QLPKx9p1AJEl8f3qfX1U2DFcsY5TyCsPK5QIJwkr9yR7oA+3Kqv5Gl+pcOz+pUoI0 Eiu6KIVOndiPo9mqN5ZjfB/3XZP4wke4TA8Avm+vu3qSipyVE3ziqK1RmaCBYZZnPW hJUV5Qa7dRQB5BS7PHHGq7RU0nKCUJHg18xaw/eJ6rr9Nh+cRQvaiVUdc97LvtCBj5 E69mwRHVDVufxke8Hu/9Cr8Wj3+Rqfqtix44m1b8LP50KsBweQTXviLMw4U3zT34Od sumWBeNw/hnJg== Received: from localhost.localdomain (unknown [101.128.125.112]) by server-vie001.gnuweeb.org (Postfix) with ESMTPSA id D754520B48E3; Fri, 7 Mar 2025 19:26:48 +0000 (UTC) From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , GNU/Weeb Mailing List Subject: [PATCH v1 06/10] chore(profile): reset password value on success Date: Sat, 8 Mar 2025 02:26:16 +0700 Message-ID: <20250307192622.1172-7-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.45.2.windows.1 In-Reply-To: <20250307192622.1172-1-kiizuha@gnuweeb.org> References: <20250307192622.1172-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: reset password value to prevent user spamming the update button. Signed-off-by: Muhammad Rizki --- src/routes/(protected)/settings/profile/+page.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes/(protected)/settings/profile/+page.svelte b/src/routes/(protected)/settings/profile/+page.svelte index 2e9b76f..664894e 100644 --- a/src/routes/(protected)/settings/profile/+page.svelte +++ b/src/routes/(protected)/settings/profile/+page.svelte @@ -66,6 +66,9 @@ user_info: data.res?.user_info }); + // reset password input onSuccess. + form.data.password = ""; + toast.info("Success update profile", { description: data.res?.msg ?? "Invalid credential, please login again." }); -- Muhammad Rizki