update pass

This commit is contained in:
2026-09-30 10:09:08 +07:00
parent 3201a18fd4
commit dff0d32912
4 changed files with 26 additions and 24 deletions

View File

@@ -193,7 +193,7 @@
id="resetPassword"
name="resetPassword"
placeholder="Enter a new password"
minlength="12"
minlength="6"
maxlength="256"
required
class="w-full pl-10 pr-4 py-2.5 bg-surface-container-low border border-outline-variant/30 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent transition-all text-sm font-medium"
@@ -212,7 +212,7 @@
id="resetConfirmPassword"
name="resetConfirmPassword"
placeholder="Re-enter new password"
minlength="12"
minlength="6"
maxlength="256"
required
class="w-full pl-10 pr-4 py-2.5 bg-surface-container-low border border-outline-variant/30 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent transition-all text-sm font-medium"
@@ -297,7 +297,7 @@
id="regPassword"
name="password"
placeholder="Create a password"
minlength="12"
minlength="6"
maxlength="256"
required
class="w-full pl-10 pr-4 py-2.5 bg-surface-container-low border border-outline-variant/30 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent transition-all text-sm font-medium"
@@ -608,8 +608,8 @@
return;
}
if (!newPassword || newPassword.length < 12 || newPassword.length > 256) {
resetPasswordErrorMessage.textContent = 'New password must be between 12 and 256 characters.';
if (!newPassword || newPassword.length < 6 || newPassword.length > 256) {
resetPasswordErrorMessage.textContent = 'New password must be between 6 and 256 characters.';
resetPasswordErrorMessage.classList.remove('hidden');
return;
}