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
parent
a322aa17ac
commit
3869f6e67f
|
|
@ -212,7 +212,10 @@ class Wizard extends Component
|
|||
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue