aboutsummaryrefslogtreecommitdiffstats
path: root/code/app/src/lib/api/password-reset-request/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'code/app/src/lib/api/password-reset-request/index.ts')
-rw-r--r--code/app/src/lib/api/password-reset-request/index.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/code/app/src/lib/api/password-reset-request/index.ts b/code/app/src/lib/api/password-reset-request/index.ts
deleted file mode 100644
index 53cb1d2..0000000
--- a/code/app/src/lib/api/password-reset-request/index.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import {api_base} from "$lib/configuration";
-import {http_get_async, http_post_async} from "../_fetch";
-
-export const http_password_reset_request = {
- create_request_async(username: string): Promise<Response> {
- return http_get_async(api_base("_/password-reset-request/create?for_user=" + username));
- },
- check_request_async(publicId: string): Promise<Response> {
- return http_get_async(api_base("_/password-reset-request/is-valid?id=" + publicId));
- },
- fulfill_request_async(publicId: string, newPassword: string): Promise<Response> {
- return http_post_async(api_base("_/password-reset-request/fulfill"), {id: publicId, newPassword});
- },
-}; \ No newline at end of file