Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix yup validation on password change

Francis Cao69410f4a55ac
diff --git a/src/pages/api/me/password.ts b/src/pages/api/me/password.ts
index 6f49a182e..a601f5d64 100644
--- a/src/pages/api/me/password.ts
+++ b/src/pages/api/me/password.ts
@@ -23,7 +23,6 @@ export interface UserPasswordRequestBody {
const schema = {
POST: yup.object().shape({
- id: yup.string().uuid().required(),
currentPassword: yup.string().required(),
newPassword: yup.string().min(8).required(),
}),