Fix login error message
This commit is contained in:
parent
cc60512859
commit
cdc3673d84
|
@ -30,9 +30,9 @@ export function logIn() {
|
||||||
saveToken(successData.token);
|
saveToken(successData.token);
|
||||||
window.account = successData.user;
|
window.account = successData.user;
|
||||||
}, errorData => {
|
}, errorData => {
|
||||||
errorHTML += errorData;
|
errorHTML += '<p class="bold red">' + errorData + '</p>';
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
createAccountErrorMessages.innerHTML = errorHTML;
|
loginErrorMessages.innerHTML = errorHTML;
|
||||||
if (errorHTML === '') {
|
if (errorHTML === '') {
|
||||||
const loginModal = document.getElementById('loginModal');
|
const loginModal = document.getElementById('loginModal');
|
||||||
loginModal.parentElement.removeChild(loginModal);
|
loginModal.parentElement.removeChild(loginModal);
|
||||||
|
|
Loading…
Reference in New Issue