Version 0.7.0 #1

Merged
kor-elf merged 90 commits from develop into main 2023-12-08 21:18:23 +06:00
Showing only changes of commit 0073dffc28 - Show all commits

View File

@ -13,6 +13,7 @@ use App\Captcha\Images\Lines;
use App\Services\Api\V1\CaptchaService; use App\Services\Api\V1\CaptchaService;
use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Foundation\Application;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
use Illuminate\Validation\Rules\Password;
final class AppServiceProvider extends ServiceProvider final class AppServiceProvider extends ServiceProvider
{ {
@ -42,6 +43,16 @@ final class AppServiceProvider extends ServiceProvider
*/ */
public function boot(): void public function boot(): void
{ {
// Password::defaults(function () {
$rule = Password::min(8);
return $this->app->isProduction()
? $rule->letters()
->mixedCase()
->numbers()
->symbols()
->uncompromised()
: $rule;
});
} }
} }