mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-01-23 23:53:17 +00:00
🛠️ Add logic to handle authError type conversion in Livewire login component
This commit is contained in:
@@ -42,6 +42,17 @@ class extends Component {
|
||||
|
||||
public ?string $authError = null;
|
||||
|
||||
/**
|
||||
* Handle authError property type conversion.
|
||||
* Ensure array values from frontend are converted to string or null.
|
||||
*/
|
||||
public function updatedAuthError(mixed $value): void
|
||||
{
|
||||
if (is_array($value) && empty($value)) {
|
||||
$this->authError = null;
|
||||
}
|
||||
}
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->currentLangCountry = session('lang_country') ?? 'de-DE';
|
||||
|
||||
Reference in New Issue
Block a user