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β€’2w ago
I guess you need to extend the RegisterPage and overwrite the form
pepperoni dogfart
pepperoni dogfartβ€’2w ago
Thanks, will take a look. Did not like that users can signup with credentials like "password"
Dennis Koch
Dennis Kochβ€’2w ago
You can probably just overwrite Laravel Password defaults
Solution
Dennis Koch
Dennis Kochβ€’2w 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 dogfartβ€’2w ago
Ah hey, perfect - didn't know that existed
pepperoni dogfart
pepperoni dogfartβ€’2w 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β€’2w 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 dogfartβ€’2w ago
we had to sign a DPA that has a lot of requirements 😦
Dennis Koch
Dennis Kochβ€’2w ago
Well that sucks πŸ˜…
Want results from more Discord servers?
Add your server
More Posts