Update security.jsx

Removed a check that evaluated for any input in the Current Password field and would cause the entry to enter in any non-null input to fail due to password length. 
This is related to: https://github.com/CyferShepard/Jellystat/issues/254
This commit is contained in:
ItsKiddow
2025-01-06 20:19:44 +01:00
committed by GitHub
parent d981a2e86b
commit 3b0f732cc7

View File

@@ -95,11 +95,6 @@ export default function SettingsConfig() {
async function handleFormSubmit(event) {
event.preventDefault();
setisSubmitted("");
if (formValues.JS_C_PASSWORD) {
setisSubmitted("Failed");
setsubmissionMessage(i18next.t("ERROR_MESSAGES.PASSWORD_LENGTH"));
return;
}
if (
(formValues.JS_C_PASSWORD && !formValues.JS_PASSWORD) ||