mirror of
https://github.com/docmost/docmost.git
synced 2026-06-15 22:48:42 +08:00
remove unused object
This commit is contained in:
@@ -69,12 +69,9 @@ export default function useAuth() {
|
|||||||
|
|
||||||
if (response?.requiresLogin) {
|
if (response?.requiresLogin) {
|
||||||
notifications.show({
|
notifications.show({
|
||||||
message:
|
message: t(
|
||||||
response.message ||
|
"Account created successfully. Please log in to set up two-factor authentication.",
|
||||||
t(
|
),
|
||||||
"Account created successfully. Please log in to set up two-factor authentication.",
|
|
||||||
),
|
|
||||||
color: "green",
|
|
||||||
});
|
});
|
||||||
navigate(APP_ROUTE.AUTH.LOGIN);
|
navigate(APP_ROUTE.AUTH.LOGIN);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ export async function createInvitation(data: ICreateInvite) {
|
|||||||
return req.data;
|
return req.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function acceptInvitation(data: IAcceptInvite): Promise<{ requiresLogin?: boolean; message?: string }> {
|
export async function acceptInvitation(data: IAcceptInvite): Promise<{ requiresLogin?: boolean; }> {
|
||||||
const req = await api.post("/workspace/invites/accept", data);
|
const req = await api.post("/workspace/invites/accept", data);
|
||||||
return req.data;
|
return req.data;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user