mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
비밀번호 변경 페이지 구현
This commit is contained in:
10
src/routes/(fullscreen)/auth/changePassword/service.ts
Normal file
10
src/routes/(fullscreen)/auth/changePassword/service.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { callPostApi } from "$lib/hooks";
|
||||
import type { PasswordChangeRequest } from "$lib/server/schemas";
|
||||
|
||||
export const requestPasswordChange = async (oldPassword: string, newPassword: string) => {
|
||||
const res = await callPostApi<PasswordChangeRequest>("/api/auth/changePassword", {
|
||||
oldPassword,
|
||||
newPassword,
|
||||
});
|
||||
return res.ok;
|
||||
};
|
||||
Reference in New Issue
Block a user