fix : 12 to 6 for password
This commit is contained in:
@@ -16,7 +16,7 @@ async function mutate(request: Request) {
|
||||
const password = input && typeof input === "object" && "password" in input ? input.password : undefined;
|
||||
const newPassword = input && typeof input === "object" && "newPassword" in input ? input.newPassword : undefined;
|
||||
const value = password ?? newPassword;
|
||||
if (typeof value !== "string" || value.length < 12 || value.length > 128) {
|
||||
if (typeof value !== "string" || value.length < 6 || value.length > 128) {
|
||||
throw new HttpError(400, "invalid-password-length");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user