Fix: Login-Redirect nur bei erfolgreichem SSL auf Domain umleiten

ssl_configured=1 → https://{ui_domain}/login
ssl_configured=0 → /login (bleibt auf aktueller IP/Host)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main
boban 2026-04-24 14:08:01 +02:00
parent a322aa17ac
commit 3869f6e67f
1 changed files with 4 additions and 1 deletions

View File

@ -212,7 +212,10 @@ class Wizard extends Component
public function goToLogin(): mixed public function goToLogin(): mixed
{ {
$url = 'https://' . ($this->ui_domain ?: request()->getHttpHost()) . '/login'; $sslOk = Setting::get('ssl_configured', '0') === '1' && $this->ui_domain;
$url = $sslOk
? 'https://' . $this->ui_domain . '/login'
: '/login';
return redirect()->to($url)->with('setup_done', true); return redirect()->to($url)->with('setup_done', true);
} }