Skip to content

Commit 928b669

Browse files
authored
Update account.html
1 parent 10ea6c0 commit 928b669

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

account.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143

144144
// Redirect to ScratchAuth for authentication
145145
function registerScratchAuth() {
146-
const messageBox = document.getElementById("message");
146+
const messageBox = document.getElementById("scratchMessage");
147147
const redirectLocation = encodeURIComponent(window.location.href);
148148

149149
const authUrl = `https://auth.itinerary.eu.org/auth/?redirect=${redirectLocation}&name=Coding%20Hut&sign_in_method=cloud`;
@@ -158,7 +158,7 @@
158158

159159
// Redirect to APIAuth for authentication
160160
function registerApiAuth() {
161-
const messageBox = document.getElementById("message");
161+
const messageBox = document.getElementById("apiMessage");
162162
const redirectLocation = encodeURIComponent(window.location.href);
163163

164164
const authUrl = `https://ubbload.netlify.app/login?redirect=${redirectLocation}`;
@@ -183,7 +183,7 @@ <h1>Scratch Authentication</h1>
183183
<div id="textForLogged" class="text content">
184184
<h2>Welcome! Please log in to continue.</h2>
185185
<button onclick="registerScratchAuth()">Sign In With ScratchAuth</button>
186-
<p id="message" class="message" aria-live="polite"></p>
186+
<p id="scratchMessage" class="message" aria-live="polite"></p>
187187
<p>
188188
Please note: You will be redirected to an external site (ScratchAuth) for authentication. Once there,
189189
choose the "Cloud Data" option for the quickest sign-in method.
@@ -197,7 +197,7 @@ <h2>Welcome! Please log in to continue.</h2>
197197
<h2>Login Using APIAuth</h2>
198198
<button onclick="registerApiAuth()">Login With APIAuth (Made by
199199
<a href="https://scratch.mit.edu/users/kRxZy_kRxZy/" target="_blank" class="kRxZy-link">kRxZy_kRxZy</a>)</button>
200-
<p id="message" class="message" aria-live="polite"></p>
200+
<p id="apiMessage" class="message" aria-live="polite"></p>
201201
<p>
202202
APIAuth, made by <a href="https://scratch.mit.edu/users/kRxZy_kRxZy/" target="_blank" class="kRxZy-link">kRxZy_kRxZy</a>, is the next generation of Scratch Authentication.
203203
You only need to enter your username, put a code in your bio, click Done, and then remove the code. Then, you are logged in.

0 commit comments

Comments
 (0)