Fix: Benachrichtigungs-Defaults – User-Email + sinnvoller Absendername
Absendername-Default: '{Instanzname} Benachrichtigung'.
Admin-Email-Default: Login-Email des eingeloggten Users (notifyEmail()).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
v1.1.369
parent
c6d6798898
commit
cdfdcc0756
|
|
@ -30,7 +30,7 @@ class SettingsForm extends Component
|
|||
private const SSL_STATE_DIR = '/var/lib/mailwolt/wizard';
|
||||
|
||||
// Benachrichtigungen
|
||||
public string $notify_sender_name = 'System Alert';
|
||||
public string $notify_sender_name = '';
|
||||
public string $notify_admin_email = '';
|
||||
|
||||
// Sicherheit
|
||||
|
|
@ -135,8 +135,10 @@ class SettingsForm extends Component
|
|||
}
|
||||
|
||||
$this->loadSslStatus();
|
||||
$this->notify_sender_name = (string) Setting::get('notify_sender_name', $this->notify_sender_name);
|
||||
$this->notify_admin_email = (string) Setting::get('notify_admin_email', $this->notify_admin_email);
|
||||
$defaultSenderName = ($this->instance_name ?: 'Mailwolt') . ' Benachrichtigung';
|
||||
$defaultAdminEmail = auth()->user()?->notifyEmail() ?? '';
|
||||
$this->notify_sender_name = (string) Setting::get('notify_sender_name', $defaultSenderName);
|
||||
$this->notify_admin_email = (string) Setting::get('notify_admin_email', $defaultAdminEmail);
|
||||
$this->rate_limit = (int) Setting::get('rate_limit', $this->rate_limit);
|
||||
$this->password_min = (int) Setting::get('password_min', $this->password_min);
|
||||
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@
|
|||
<div class="mw-modal-grid2">
|
||||
<div>
|
||||
<label class="mw-modal-label">Absendername</label>
|
||||
<input type="text" wire:model.defer="notify_sender_name" class="mw-modal-input" placeholder="System Alert">
|
||||
<input type="text" wire:model.defer="notify_sender_name" class="mw-modal-input" placeholder="Mailwolt Benachrichtigung">
|
||||
<div class="mw-modal-hint">Wird als Absender in System-Mails angezeigt</div>
|
||||
</div>
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue