checkpoint
This commit is contained in:
@ -52,6 +52,7 @@ const AuthModal = (props: {
|
||||
.then(() => props.setOpen(false))
|
||||
.then(() => navigate("/dashboard"))
|
||||
.catch(() => messageApi.error(tr("Login failed!")));
|
||||
loginForm.resetFields();
|
||||
};
|
||||
|
||||
const submitRegisterForm = (formData: {
|
||||
@ -94,12 +95,18 @@ const AuthModal = (props: {
|
||||
spinning={isLoggingIn || isRegistering}
|
||||
indicator={<LoadingOutlined style={{ fontSize: 36 }} spin />}
|
||||
>
|
||||
<Menu
|
||||
onClick={(e) => setCurrent(e.key)}
|
||||
mode="horizontal"
|
||||
selectedKeys={[current]}
|
||||
items={items}
|
||||
/>
|
||||
<div
|
||||
style={{ display: "flex", width: "100%", justifyContent: "center" }}
|
||||
>
|
||||
<Menu
|
||||
onClick={(e) => setCurrent(e.key)}
|
||||
mode="horizontal"
|
||||
selectedKeys={[current]}
|
||||
items={items}
|
||||
style={{ width: "fit-content" }}
|
||||
disabledOverflow={true}
|
||||
/>
|
||||
</div>
|
||||
<br />
|
||||
{current === "register" ? (
|
||||
<Form
|
||||
|
||||
@ -25,7 +25,7 @@ server {
|
||||
proxy_hide_header 'Access-Control-Allow-Methods';
|
||||
add_header 'Access-Control-Allow-Methods' '*' always;
|
||||
|
||||
proxy_pass https://backend:8000;
|
||||
proxy_pass http://backend:8000/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Reference in New Issue
Block a user