FIX: She's alive! and its working! I had to server the backend to the live web though.
This commit is contained in:
parent
7bf4e90344
commit
a96e677daf
@ -71,8 +71,6 @@ v1.post("/login", (req: Request, res: Response): void => {
|
||||
// Get info from body
|
||||
const {username, password} = req.body;
|
||||
|
||||
console.log("I GOT HIT BABY!!!");
|
||||
|
||||
// Get required info from the environment and validate
|
||||
// TODO: Make sure the ENV is sourced through docker compose!
|
||||
if (process.env["FILE_GOPHERNEST_USER"] === username && validateHash(password, process.env["FILE_GOPHERNEST_PASSWORD"] as string)) {
|
||||
|
||||
@ -9,7 +9,7 @@ export default function LoginForm() {
|
||||
* URL To the backend web server
|
||||
* @type {string}
|
||||
*/
|
||||
const backendUrl = "http://172.19.0.2:5000";
|
||||
const backendUrl = "https://backend.gophernest.net";
|
||||
|
||||
const [username, setUsername] = useState("");
|
||||
const [remember, setRemember] = useState(false);
|
||||
|
||||
@ -8,13 +8,13 @@ import Editor from "../components/Editor.jsx";
|
||||
|
||||
export default function Dashboard() {
|
||||
// Store the default path
|
||||
const defaultPath = ["home", "azpect", "Documents"];
|
||||
const defaultPath = ["media", "vault"];
|
||||
|
||||
/**
|
||||
* URL To the backend web server
|
||||
* @type {string}
|
||||
*/
|
||||
const backendUrl = "http://172.19.0.2:5000";
|
||||
const backendUrl = "https://backend.gophernest.net";
|
||||
|
||||
const [token, setToken] = useState(null);
|
||||
const [path, setPath] = useState([...defaultPath]);
|
||||
|
||||
Reference in New Issue
Block a user