display message on creating account
This commit is contained in:
@@ -37,8 +37,10 @@ document.getElementById('signupForm').addEventListener('submit',async function (
|
||||
|
||||
const result = await response.json();
|
||||
if(response.ok) {
|
||||
location.href='/chat';
|
||||
messageBox.innerText = result.message;
|
||||
messageBox.style.color = 'green';
|
||||
} else {
|
||||
messageBox.innerText = result.message;
|
||||
messageBox.style.color = 'red';
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user