mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Re-add required.
This commit is contained in:
parent
88d67c7b0b
commit
fcd7fac2ce
1 changed files with 4 additions and 1 deletions
|
|
@ -25,7 +25,10 @@ const schema = {
|
||||||
username: yup.string().max(255).required(),
|
username: yup.string().max(255).required(),
|
||||||
password: yup.string().required(),
|
password: yup.string().required(),
|
||||||
id: yup.string().uuid(),
|
id: yup.string().uuid(),
|
||||||
role: yup.string().matches(/admin|user|view-only/i),
|
role: yup
|
||||||
|
.string()
|
||||||
|
.matches(/admin|user|view-only/i)
|
||||||
|
.required(),
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue