Skip to content

Default password rules doesn't match expected password format #3

@thinkverse

Description

@thinkverse

A user can register and update their password with a password that doesn't match the expected password format according to the modal shown when entering the password.

Could you consider defining the password defaults to match the expected format? It would be even better if the expected format modal could match the default automatcally.

use Illuminate\Validation\Rules\Password;

/**
 * Bootstrap any application services.
 */
public function boot(): void
{
    Password::defaults(function () {
        $rule = Password::min(8);

        return $this->app->isProduction()
            ? $rule->mixedCase()->uncompromised()
            : $rule;
    });
}
Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions