feat: local user registration

This commit is contained in:
Björn Fromme committed 2026-06-23 16:27:08 +02:00
1 parent 8bb7f08074
commit 161029ec7c
29 files changed
+1549 -601

No files matched your search

+1 -4
View File
@@ -7,7 +7,7 @@ namespace App\BusProNet\Model;
use Symfony\Component\Validator\Constraints as Assert;
/**
* Represents communication information including email, phone, and newsletter preferences.
* Represents communication information including email and phone numbers.
*
* This class handles contact information for users and participants in the booking system.
* It provides validation constraints for required fields and methods to convert
@@ -24,8 +24,6 @@ class Communication
#[Assert\Email(message: 'Bitte eine gültige Adresse angeben', mode: 'strict', groups: ['personal_data'])]
public ?string $email = null;
public bool $newsletter = false;
/**
* Converts the communication data to API payload format.
*
@@ -40,7 +38,6 @@ class Communication
'email' => $this->email,
'telefonmobil' => $this->mobile,
'telefonprivat' => $this->phone,
'newsletter' => $this->newsletter ? 'True' : 'False',
];
}
}