Registration - Password Requirement

Durign a new user signup, is there a place to modify the requirements for the password field? I'm using the Breezy plugin which allows setting such things on the profile update once logged in, but not for the initial signup.
Solution:
Laravel News
Defining Default Password Validation Rules in Laravel - Laravel News
The Password Validation Rule Object now supports the ability to define default password rules you can use across your application.
Jump to solution
10 Replies
Dennis Koch
Dennis Kochβ€’6mo ago
I guess you need to extend the RegisterPage and overwrite the form
pepperoni dogfart
pepperoni dogfartOPβ€’6mo ago
Thanks, will take a look. Did not like that users can signup with credentials like "password"
Dennis Koch
Dennis Kochβ€’6mo ago
You can probably just overwrite Laravel Password defaults
Solution
Dennis Koch
Dennis Kochβ€’6mo ago
Laravel News
Defining Default Password Validation Rules in Laravel - Laravel News
The Password Validation Rule Object now supports the ability to define default password rules you can use across your application.
pepperoni dogfart
pepperoni dogfartOPβ€’6mo ago
Ah hey, perfect - didn't know that existed
pepperoni dogfart
pepperoni dogfartOPβ€’6mo ago
Password::defaults(function () {
$rule = Password::min(8);

return $this->app->isProduction()
? $rule->mixedCase()->uncompromised()->letters()->numbers()->symbols()
: $rule;
});
Password::defaults(function () {
$rule = Password::min(8);

return $this->app->isProduction()
? $rule->mixedCase()->uncompromised()->letters()->numbers()->symbols()
: $rule;
});
No description
Dennis Koch
Dennis Kochβ€’6mo ago
Usuallly I'd just go for ->uncompromised() and min length Anything else will just lead to users picking stupid passwords to fit the rules
pepperoni dogfart
pepperoni dogfartOPβ€’6mo ago
we had to sign a DPA that has a lot of requirements 😦
Dennis Koch
Dennis Kochβ€’6mo ago
Well that sucks πŸ˜…
Want results from more Discord servers?
Add your server