This commit is contained in:
1 parent
e4de1c62f8
commit
9eecde7a80
4 files changed
+93
-4
No files matched your search
@@ -134,6 +134,11 @@ export namespace API {
|
||||
.then(res => res.json())
|
||||
}
|
||||
|
||||
export async function updatePassword(username: String, newPassword: string): Promise<any> {
|
||||
return api("/auth/update", "PUT", { username, newPassword })
|
||||
.then(res => res.json())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user