Increase minimum password length from 6 to 8 characters (#3207)
This commit is contained in:
@@ -170,6 +170,6 @@ public class UserService {
|
||||
}
|
||||
|
||||
private boolean meetsMinimumPasswordRequirements(String password) {
|
||||
return password != null && password.length() >= 6;
|
||||
return password != null && password.length() >= 8;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ export class CreateUserDialogComponent implements OnInit {
|
||||
name: ['', [Validators.required, Validators.minLength(3)]],
|
||||
email: ['', [Validators.required, Validators.email]],
|
||||
username: ['', Validators.required],
|
||||
password: ['', [Validators.required, Validators.minLength(6)]],
|
||||
password: ['', [Validators.required, Validators.minLength(8)]],
|
||||
confirmPassword: ['', Validators.required],
|
||||
selectedLibraries: [[], Validators.required],
|
||||
permissionUpload: [false],
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ export class UserProfileDialogComponent implements OnInit, OnDestroy {
|
||||
this.changePasswordForm = this.fb.group(
|
||||
{
|
||||
currentPassword: ['', Validators.required],
|
||||
newPassword: ['', [Validators.required, Validators.minLength(6)]],
|
||||
newPassword: ['', [Validators.required, Validators.minLength(8)]],
|
||||
confirmNewPassword: ['', Validators.required]
|
||||
},
|
||||
{validators: passwordMatchValidator}
|
||||
|
||||
@@ -37,7 +37,7 @@ export class SetupComponent {
|
||||
name: ['', [Validators.required]],
|
||||
username: ['', [Validators.required]],
|
||||
email: ['', [Validators.required, Validators.email]],
|
||||
password: ['', [Validators.required, Validators.minLength(6)]],
|
||||
password: ['', [Validators.required, Validators.minLength(8)]],
|
||||
confirmPassword: ['', [Validators.required]],
|
||||
}, {validators: [passwordMatchValidator('password', 'confirmPassword')]});
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"usernameRequired": "Username is required.",
|
||||
"password": "KOReader Password",
|
||||
"passwordDesc": "Your password for authenticating with the KOReader sync service.",
|
||||
"passwordMinLength": "Password must be at least 6 characters.",
|
||||
"passwordMinLength": "Password must be at least 8 characters.",
|
||||
"settingsManagement": "Settings Management",
|
||||
"settingsManagementDesc": "Save your credentials or edit existing settings.",
|
||||
"accessDenied": "Access to KOReader sync is restricted.",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"validation": {
|
||||
"currentPasswordRequired": "Current password is required.",
|
||||
"newPasswordRequired": "New password is required.",
|
||||
"passwordMinLength": "Password must be at least 6 characters long.",
|
||||
"passwordMinLength": "Password must be at least 8 characters long.",
|
||||
"confirmPasswordRequired": "Please confirm your new password.",
|
||||
"passwordMismatch": "Passwords do not match."
|
||||
},
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
"nameRequired": "Name is required and must be at least 3 characters.",
|
||||
"usernameRequired": "Username is required.",
|
||||
"emailInvalid": "Enter a valid email address.",
|
||||
"passwordMinLength": "Password must be at least 6 characters long.",
|
||||
"passwordMinLength": "Password must be at least 8 characters long.",
|
||||
"confirmRequired": "Password confirmation is required",
|
||||
"passwordMismatch": "Passwords do not match.",
|
||||
"libraryAccess": "Library Access",
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
"usernameRequired": "Username is required",
|
||||
"nameRequired": "Name is required",
|
||||
"emailRequired": "Valid email is required",
|
||||
"passwordMinLength": "Minimum 6 characters required",
|
||||
"passwordMinLength": "Minimum 8 characters required",
|
||||
"confirmPasswordRequired": "Password confirmation is required",
|
||||
"passwordsMismatch": "Passwords do not match"
|
||||
},
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"usernameRequired": "El nombre de usuario es obligatorio.",
|
||||
"password": "Contraseña KOReader",
|
||||
"passwordDesc": "Tu contraseña para autenticarte con el servicio de sincronización KOReader.",
|
||||
"passwordMinLength": "La contraseña debe tener al menos 6 caracteres.",
|
||||
"passwordMinLength": "La contraseña debe tener al menos 8 caracteres.",
|
||||
"settingsManagement": "Gestión de ajustes",
|
||||
"settingsManagementDesc": "Guarda tus credenciales o edita los ajustes existentes.",
|
||||
"accessDenied": "El acceso a la sincronización KOReader está restringido.",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"validation": {
|
||||
"currentPasswordRequired": "La contraseña actual es obligatoria.",
|
||||
"newPasswordRequired": "La nueva contraseña es obligatoria.",
|
||||
"passwordMinLength": "La contraseña debe tener al menos 6 caracteres.",
|
||||
"passwordMinLength": "La contraseña debe tener al menos 8 caracteres.",
|
||||
"confirmPasswordRequired": "Por favor, confirma tu nueva contraseña.",
|
||||
"passwordMismatch": "Las contraseñas no coinciden."
|
||||
},
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
"nameRequired": "El nombre es obligatorio y debe tener al menos 3 caracteres.",
|
||||
"usernameRequired": "El nombre de usuario es obligatorio.",
|
||||
"emailInvalid": "Introduce una dirección de correo electrónico válida.",
|
||||
"passwordMinLength": "La contraseña debe tener al menos 6 caracteres.",
|
||||
"passwordMinLength": "La contraseña debe tener al menos 8 caracteres.",
|
||||
"confirmRequired": "La confirmación de contraseña es obligatoria",
|
||||
"passwordMismatch": "Las contraseñas no coinciden.",
|
||||
"libraryAccess": "Acceso a bibliotecas",
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
"usernameRequired": "El nombre de usuario es obligatorio",
|
||||
"nameRequired": "El nombre es obligatorio",
|
||||
"emailRequired": "Se requiere un correo electrónico válido",
|
||||
"passwordMinLength": "Se requieren al menos 6 caracteres",
|
||||
"passwordMinLength": "Se requieren al menos 8 caracteres",
|
||||
"confirmPasswordRequired": "La confirmación de contraseña es obligatoria",
|
||||
"passwordsMismatch": "Las contraseñas no coinciden"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user