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