mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
security: enforce min length for user password (#1555)
* fix typing on auth context * extract user password strength meter * fix broken useToggle method * extend form to accept arguments for validators * enforce password length on update * fix user password change form
This commit is contained in:
parent
b3c41a4bd0
commit
54c4f19a5c
9 changed files with 105 additions and 95 deletions
|
@ -27,7 +27,7 @@ export const useUserForm = () => {
|
|||
varName: "password",
|
||||
disableUpdate: true,
|
||||
type: fieldTypes.PASSWORD,
|
||||
rules: ["required"],
|
||||
rules: ["required", "minLength:8"],
|
||||
},
|
||||
{
|
||||
section: "Permissions",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue