update pass
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user