feat: accept terms
CI / 🧪 Tests Laravel (push) Successful in 2m7s
CI / 🐳 Build & Push Image (push) Successful in 38s

This commit is contained in:
2026-08-07 16:10:25 +02:00
parent 68560655f3
commit 6b757c37be
5 changed files with 62 additions and 1 deletions
+1
View File
@@ -360,6 +360,7 @@ class AuthController extends Controller
$userAttributes['email'] = strtolower($data['email']);
$userAttributes['password'] = Hash::make($data['password']);
$userAttributes['avatar_url'] = $avatarPath;
$userAttributes['terms_accepted_at'] = now();
$trialDays = max(0, (int) config('billing.trial_days', 7));
if ($trialDays > 0) {
+1
View File
@@ -50,6 +50,7 @@ class RegisterRequest extends FormRequest
->symbols()
->uncompromised(),
],
'termsAccepted' => ['required', 'accepted'],
'avatar' => ['sometimes', 'nullable', 'image', 'max:2048'],
'bio' => ['nullable', 'string'],
'physicalActivityLevel' => ['sometimes', Rule::enum(PhysicalActivityLevel::class)],