Update mock OAuth provider description

This commit is contained in:
Konstantin Wohlwend 2025-10-20 18:21:15 -07:00
parent cd0005b2bd
commit 7edb07a0c1
2 changed files with 6 additions and 1 deletions

View File

@ -112,6 +112,10 @@
window.NEXT_PUBLIC_STACK_PORT_PREFIX = stackPortPrefix;
const withPrefix = (suffix) => `${stackPortPrefix}${suffix}`;
// Depending on the port prefix, set the color to light grey (port 91), light purple (port 92), papyrus yellow (port 93), or default otherwise
const color = stackPortPrefix === "91" ? "#f8f8f8" : stackPortPrefix === "92" ? "#e0e0ff" : stackPortPrefix === "93" ? "#fff8e0" : undefined;
document.body.style.backgroundColor = color;
const backgroundServices = [
{ suffix: "28", label: "PostgreSQL" },
{ suffix: "29", label: "Inbucket SMTP" },

View File

@ -71,10 +71,11 @@ const loginTemplateSource = `
<body class="min-h-screen flex items-center justify-center p-4">
<div class="card w-full max-w-md p-8">
<h1 class="text-2xl font-bold mb-6 text-center">Mock OAuth Sign-in</h1>
<p class="text-gray-500 mb-4 text-center">This is a mock OAuth server for testing. It accepts any email without a password.</p>
<form method="post" action="/interaction/{{uid}}/login" class="space-y-4">
<div>
<label for="login" class="block text-gray-700">Email</label>
<input id="login" type="email" name="login" required
<input id="login" type="email" name="login" required placeholder="eg.: email@example.com"
class="mt-1 block w-full border border-gray-300 rounded px-3 py-2 focus:outline-none focus:ring focus:border-blue-300" />
</div>
<button type="submit"