mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 08:51:09 +10:00
add forgot-password ui (#273)
This commit is contained in:
committed by
GitHub
parent
f34812653e
commit
e43ea66442
@ -1,6 +1,7 @@
|
||||
import api from "@/lib/api-client";
|
||||
import {
|
||||
IChangePassword,
|
||||
IForgotPassword,
|
||||
ILogin,
|
||||
IRegister,
|
||||
ISetupWorkspace,
|
||||
@ -31,3 +32,9 @@ export async function setupWorkspace(
|
||||
const req = await api.post<ITokenResponse>("/auth/setup", data);
|
||||
return req.data;
|
||||
}
|
||||
|
||||
export async function forgotPassword(data: IForgotPassword): Promise<any> {
|
||||
const req = await api.post<any>("/auth/forgot-password", data);
|
||||
return req.data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user