update pass
This commit is contained in:
@@ -11219,7 +11219,7 @@ class AccountManager {
|
||||
<div>
|
||||
<label class="block text-xs font-semibold text-slate-600 dark:text-slate-300 mb-1">New password</label>
|
||||
<div class="flex items-center gap-2">
|
||||
<input type="password" id="profileNewPassword" placeholder="At least 12 characters" minlength="12" maxlength="256" class="flex-1 px-3 py-2 border border-outline-variant/30 rounded-lg bg-white dark:bg-slate-900">
|
||||
<input type="password" id="profileNewPassword" placeholder="At least 6 characters" minlength="6" maxlength="256" class="flex-1 px-3 py-2 border border-outline-variant/30 rounded-lg bg-white dark:bg-slate-900">
|
||||
<button type="button" data-password-toggle="profileNewPassword" class="shrink-0 px-2.5 py-2 border border-outline-variant/30 rounded-lg text-slate-500 hover:text-slate-700 hover:bg-slate-100 dark:hover:text-slate-200 dark:hover:bg-slate-800" aria-label="Show new password">
|
||||
<span class="material-symbols-outlined text-base" id="profileNewPasswordIcon">visibility</span>
|
||||
</button>
|
||||
@@ -11229,7 +11229,7 @@ class AccountManager {
|
||||
<div>
|
||||
<label class="block text-xs font-semibold text-slate-600 dark:text-slate-300 mb-1">Confirm new password</label>
|
||||
<div class="flex items-center gap-2">
|
||||
<input type="password" id="profileConfirmPassword" placeholder="Confirm new password" minlength="12" maxlength="256" class="flex-1 px-3 py-2 border border-outline-variant/30 rounded-lg bg-white dark:bg-slate-900">
|
||||
<input type="password" id="profileConfirmPassword" placeholder="Confirm new password" minlength="6" maxlength="256" class="flex-1 px-3 py-2 border border-outline-variant/30 rounded-lg bg-white dark:bg-slate-900">
|
||||
<button type="button" data-password-toggle="profileConfirmPassword" class="shrink-0 px-2.5 py-2 border border-outline-variant/30 rounded-lg text-slate-500 hover:text-slate-700 hover:bg-slate-100 dark:hover:text-slate-200 dark:hover:bg-slate-800" aria-label="Show confirm password">
|
||||
<span class="material-symbols-outlined text-base" id="profileConfirmPasswordIcon">visibility</span>
|
||||
</button>
|
||||
@@ -11311,8 +11311,8 @@ class AccountManager {
|
||||
return;
|
||||
}
|
||||
|
||||
if (newPassword && (newPassword.length < 12 || newPassword.length > 256)) {
|
||||
this.notifyFailure('New password must be between 12 and 256 characters');
|
||||
if (newPassword && (newPassword.length < 6 || newPassword.length > 256)) {
|
||||
this.notifyFailure('New password must be between 6 and 256 characters');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -11735,7 +11735,7 @@ class AccountManager {
|
||||
<div>
|
||||
<label class="block text-sm font-medium mb-1">${user ? 'New Password' : 'Password'}</label>
|
||||
<div class="flex items-center gap-2">
|
||||
<input type="password" id="userPassword" placeholder="${user ? 'Leave blank to keep current password' : 'At least 12 characters'}" minlength="12" maxlength="256" class="flex-1 px-3 py-2 border border-outline-variant/30 rounded-lg bg-surface-container-low dark:bg-slate-800" ${user ? '' : 'required'}>
|
||||
<input type="password" id="userPassword" placeholder="${user ? 'Leave blank to keep current password' : 'At least 6 characters'}" minlength="6" maxlength="256" class="flex-1 px-3 py-2 border border-outline-variant/30 rounded-lg bg-surface-container-low dark:bg-slate-800" ${user ? '' : 'required'}>
|
||||
<button type="button" id="userPasswordToggle" class="p-2 rounded-lg border border-outline-variant/30 hover:bg-slate-100 dark:hover:bg-slate-700" title="Show/Hide password">
|
||||
<span class="material-symbols-outlined text-base" id="userPasswordToggleIcon">visibility</span>
|
||||
</button>
|
||||
@@ -11817,8 +11817,8 @@ class AccountManager {
|
||||
return;
|
||||
}
|
||||
|
||||
if (password && (password.length < 12 || password.length > 256)) {
|
||||
this.notifyFailure('Password must be between 12 and 256 characters');
|
||||
if (password && (password.length < 6 || password.length > 256)) {
|
||||
this.notifyFailure('Password must be between 6 and 256 characters');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user