forked from React-Group/interstellar_ai
Compare commits
No commits in common. "d1ccd53f2ae5b7cef973b51ebcee9b522ae83b79" and "e38d0b358b500505accc6a53e7a395a8d1567fa7" have entirely different histories.
d1ccd53f2a
...
e38d0b358b
1 changed files with 0 additions and 5 deletions
|
@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react';
|
|||
import {
|
||||
createAccount,
|
||||
checkCredentials,
|
||||
getData
|
||||
} from '../backend/database';
|
||||
import Settings from './settings/Settings'; // Import the Settings component
|
||||
|
||||
|
@ -55,10 +54,6 @@ const Login: React.FC = () => {
|
|||
const success = await checkCredentials(accountName, password);
|
||||
if (success) {
|
||||
setIsLoggedIn(true); // Successful login
|
||||
var data = await getData(accountName, password)
|
||||
if (data) {
|
||||
localStorage.setItem("dataFromServer", data)
|
||||
}
|
||||
setShowLoginPopup(false); // Close the login popup
|
||||
} else {
|
||||
alert('Incorrect credentials');
|
||||
|
|
Loading…
Reference in a new issue