mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Update mock OAuth provider description
This commit is contained in:
parent
cd0005b2bd
commit
7edb07a0c1
@ -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" },
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user