From 47ae3bbfd48fbd0319d15a4c16a6ec576d0c6c89 Mon Sep 17 00:00:00 2001 From: Chris Riddell <2055566+ChrisRiddell@users.noreply.github.com> Date: Sat, 26 Mar 2022 08:23:26 +1030 Subject: [PATCH] Fix for Jetstream #1018 --- stubs/app/Actions/Fortify/CreateNewUserWithTeams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/app/Actions/Fortify/CreateNewUserWithTeams.php b/stubs/app/Actions/Fortify/CreateNewUserWithTeams.php index 5c2a969bb..51132fdb7 100644 --- a/stubs/app/Actions/Fortify/CreateNewUserWithTeams.php +++ b/stubs/app/Actions/Fortify/CreateNewUserWithTeams.php @@ -26,7 +26,7 @@ public function create(array $input) 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 'password' => $this->passwordRules(), - 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['required', 'accepted'] : '', + 'terms' => Jetstream::hasTermsAndPrivacyPolicyFeature() ? ['accepted', 'required'] : '', ])->validate(); return DB::transaction(function () use ($input) {