Deploy Ladill Hosting / deploy (push) Successful in 34s
Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
1.4 KiB
PHP
39 lines
1.4 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Signing in…</title>
|
|
@include('partials.favicon')
|
|
<meta name="robots" content="noindex">
|
|
<style>
|
|
body { font-family: system-ui, sans-serif; display: flex; min-height: 100vh; align-items: center; justify-content: center; margin: 0; background: #f8fafc; color: #334155; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>Signing you in with Ladill…</p>
|
|
<script>
|
|
(function () {
|
|
var intended = @json($intended);
|
|
var authorizeUrl = @json($authorizeUrl);
|
|
var fallbackUrl = @json($fallbackUrl);
|
|
|
|
window.addEventListener('message', function (event) {
|
|
if (event.origin !== window.location.origin) return;
|
|
if (!event.data) return;
|
|
if (event.data.type === 'ladill:sso:success') {
|
|
window.location.replace(event.data.return || intended);
|
|
} else if (event.data.type === 'ladill:sso:error') {
|
|
window.location.replace(fallbackUrl);
|
|
}
|
|
});
|
|
|
|
var popup = window.open(authorizeUrl, 'ladill_sso', 'width=520,height=720');
|
|
if (!popup) {
|
|
window.location.replace(fallbackUrl);
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|