mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-11-04 10:17:01 +01:00 
			
		
		
		
	Fix login error message
This commit is contained in:
		
							parent
							
								
									cc60512859
								
							
						
					
					
						commit
						cdc3673d84
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -30,9 +30,9 @@ export function logIn() {
 | 
			
		|||
      saveToken(successData.token);
 | 
			
		||||
      window.account = successData.user;
 | 
			
		||||
    }, errorData => {
 | 
			
		||||
      errorHTML += errorData;
 | 
			
		||||
      errorHTML += '<p class="bold red">' + errorData + '</p>';
 | 
			
		||||
    }).then(() => {
 | 
			
		||||
      createAccountErrorMessages.innerHTML = errorHTML;
 | 
			
		||||
      loginErrorMessages.innerHTML = errorHTML;
 | 
			
		||||
      if (errorHTML === '') {
 | 
			
		||||
        const loginModal = document.getElementById('loginModal');
 | 
			
		||||
        loginModal.parentElement.removeChild(loginModal);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue