diff --git a/app/Livewire/Auth/ForgotPassword.php b/app/Livewire/Auth/ForgotPassword.php index 6240aaa..4670096 100644 --- a/app/Livewire/Auth/ForgotPassword.php +++ b/app/Livewire/Auth/ForgotPassword.php @@ -69,7 +69,7 @@ class ForgotPassword extends Component $this->validate([ 'email' => ['required', 'email'], 'code' => ['required', 'string'], - 'password' => ['required', 'confirmed', Password::min(12)->mixedCase()->numbers()], + 'password' => ['required', 'confirmed', Password::min(6)->mixedCase()->numbers()], ]); // Tight per-(email+IP) bucket PLUS an IP-independent per-account backstop: this reset diff --git a/app/Livewire/Auth/PasswordChange.php b/app/Livewire/Auth/PasswordChange.php index 7478a92..f0f8263 100644 --- a/app/Livewire/Auth/PasswordChange.php +++ b/app/Livewire/Auth/PasswordChange.php @@ -34,7 +34,7 @@ class PasswordChange extends Component try { $this->validate([ 'current' => ['required', 'current_password'], - 'password' => ['required', 'confirmed', Password::min(12)->mixedCase()->numbers()], + 'password' => ['required', 'confirmed', Password::min(6)->mixedCase()->numbers()], ], attributes: [ 'current' => __('auth.attr_current_password'), 'password' => __('auth.attr_new_password'), diff --git a/app/Livewire/Auth/ResetPassword.php b/app/Livewire/Auth/ResetPassword.php index 8c5e330..2d20d2a 100644 --- a/app/Livewire/Auth/ResetPassword.php +++ b/app/Livewire/Auth/ResetPassword.php @@ -34,7 +34,7 @@ class ResetPassword extends Component { $this->validate([ 'email' => ['required', 'email'], - 'password' => ['required', 'confirmed', PasswordRule::min(12)->mixedCase()->numbers()], + 'password' => ['required', 'confirmed', PasswordRule::min(6)->mixedCase()->numbers()], ]); $status = Password::reset( diff --git a/app/Livewire/Modals/CreateUser.php b/app/Livewire/Modals/CreateUser.php index c4ccbf8..9b39aab 100644 --- a/app/Livewire/Modals/CreateUser.php +++ b/app/Livewire/Modals/CreateUser.php @@ -46,7 +46,7 @@ class CreateUser extends ModalComponent 'name' => ['required', 'string', 'max:120'], 'email' => ['required', 'string', 'email', 'max:255', Rule::unique('users', 'email')], // Optional — when set it must meet the same strength as a self-chosen password. - 'password' => ['nullable', 'string', Password::min(12)->mixedCase()->numbers()], + 'password' => ['nullable', 'string', Password::min(6)->mixedCase()->numbers()], ]; } diff --git a/app/Livewire/Settings/Profile.php b/app/Livewire/Settings/Profile.php index 44b5b33..db3c636 100644 --- a/app/Livewire/Settings/Profile.php +++ b/app/Livewire/Settings/Profile.php @@ -54,7 +54,7 @@ class Profile extends Component try { $this->validate([ 'current_password' => ['required', 'current_password'], - 'password' => ['required', 'confirmed', Password::min(12)->mixedCase()->numbers()], + 'password' => ['required', 'confirmed', Password::min(6)->mixedCase()->numbers()], ]); } catch (ValidationException $e) { if (array_key_exists('current_password', $e->errors())) { diff --git a/lang/de/accounts.php b/lang/de/accounts.php index 60742b6..b4e4517 100644 --- a/lang/de/accounts.php +++ b/lang/de/accounts.php @@ -23,7 +23,7 @@ return [ 'email_placeholder' => 'erika@example.com', 'password_label' => 'Passwort', 'password_placeholder' => 'Leer = Einmal-Passwort erzeugen', - 'password_hint' => 'Optional. Min. 12 Zeichen, Groß-/Kleinschreibung + Zahl. Leer lassen, um ein sicheres Einmal-Passwort zu erzeugen.', + 'password_hint' => 'Optional. Min. 6 Zeichen, Groß-/Kleinschreibung + Zahl. Leer lassen, um ein sicheres Einmal-Passwort zu erzeugen.', 'created_notify' => 'Konto :name angelegt.', 'create_submit' => 'Konto anlegen', diff --git a/lang/de/auth.php b/lang/de/auth.php index 6ac0a8d..0de689d 100644 --- a/lang/de/auth.php +++ b/lang/de/auth.php @@ -20,7 +20,7 @@ return [ // ── Password change ────────────────────────────────────────────────── 'security' => 'Sicherheit', 'password_change_heading' => 'Passwort ändern', - 'password_change_subtitle' => 'Lege ein eigenes Passwort fest (min. 12 Zeichen, Groß-/Kleinschreibung + Zahl).', + 'password_change_subtitle' => 'Lege ein eigenes Passwort fest (min. 6 Zeichen, Groß-/Kleinschreibung + Zahl).', 'current_password' => 'Aktuelles Passwort', 'new_password' => 'Neues Passwort', 'confirm_new_password' => 'Neues Passwort bestätigen', diff --git a/lang/en/accounts.php b/lang/en/accounts.php index 270e8c1..af2c3d5 100644 --- a/lang/en/accounts.php +++ b/lang/en/accounts.php @@ -23,7 +23,7 @@ return [ 'email_placeholder' => 'jane@example.com', 'password_label' => 'Password', 'password_placeholder' => 'Blank = generate a one-time password', - 'password_hint' => 'Optional. Min. 12 characters, upper/lowercase + a digit. Leave blank to generate a secure one-time password.', + 'password_hint' => 'Optional. Min. 6 characters, upper/lowercase + a digit. Leave blank to generate a secure one-time password.', 'created_notify' => 'Account :name created.', 'create_submit' => 'Create account', diff --git a/lang/en/auth.php b/lang/en/auth.php index 5e0772a..e71ed2d 100644 --- a/lang/en/auth.php +++ b/lang/en/auth.php @@ -20,7 +20,7 @@ return [ // ── Password change ────────────────────────────────────────────────── 'security' => 'Security', 'password_change_heading' => 'Change password', - 'password_change_subtitle' => 'Set your own password (min. 12 characters, upper/lowercase + a digit).', + 'password_change_subtitle' => 'Set your own password (min. 6 characters, upper/lowercase + a digit).', 'current_password' => 'Current password', 'new_password' => 'New password', 'confirm_new_password' => 'Confirm new password',