You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
1.2 KiB

import React, { useEffect } from "react";
import Layout from "./layouts/Main";
const basePath = process.env.API_BASE_PATH;
const frontendBasePath = process.env.FRONTEND_BASE_PATH;
export default function Index() {
return (
<Layout>
<form
action={
basePath + "/auth/login" + "?redirect=" + frontendBasePath + "/"
}
method="POST"
>
<div className="form-group">
<label for="email">Email address</label>
<input
type="email"
name="email"
className="form-control"
id="email"
aria-describedby="emailHelp"
/>
<small id="emailHelp" className="form-text text-muted">
We'll never share your email with anyone else.
</small>
</div>
<div className="form-group">
<label for="password">Password</label>
<input
type="password"
name="password"
className="form-control"
id="password"
/>
</div>
<button type="submit" className="btn btn-primary">
Submit
</button>
</form>
</Layout>
);
}