Fixed a bug with the register message
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
if (registerRes.ok) {
|
if (registerRes.ok) {
|
||||||
const registerData = await registerRes.json();
|
const registerData = await registerRes.json();
|
||||||
alert(`Account created! Welcome, ${registerData.username}`);
|
alert(`Account created! Welcome!`);
|
||||||
document.cookie = `authorization=${registerData.token}`
|
document.cookie = `authorization=${registerData.token}`
|
||||||
window.location.href = "/";
|
window.location.href = "/";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user