mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 20:39:44 +01:00
fix yup validation on password change
This commit is contained in:
parent
c97d4037a6
commit
69410f4a55
@ -23,7 +23,6 @@ export interface UserPasswordRequestBody {
|
|||||||
|
|
||||||
const schema = {
|
const schema = {
|
||||||
POST: yup.object().shape({
|
POST: yup.object().shape({
|
||||||
id: yup.string().uuid().required(),
|
|
||||||
currentPassword: yup.string().required(),
|
currentPassword: yup.string().required(),
|
||||||
newPassword: yup.string().min(8).required(),
|
newPassword: yup.string().min(8).required(),
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user