Skip to content

Commit

Permalink
fixed schema
Browse files Browse the repository at this point in the history
  • Loading branch information
fomalhautb committed Dec 24, 2024
1 parent 71a479a commit f36f349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/user-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function UserDialog(props: {
clientReadOnlyMetadata: jsonStringOrEmptySchema.default("null"),
serverMetadata: jsonStringOrEmptySchema.default("null"),
primaryEmailVerified: yup.boolean().optional(),
password: passwordSchema.test({
password: passwordSchema.min(1).test({
name: 'password-required',
message: "Password is required",
test: (value, context) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/stack-shared/src/schema-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export const base64Schema = yupString().test("is-base64", (params) => `${params.
if (value == null) return true;
return isBase64(value);
});
export const passwordSchema = yupString().min(1).max(70);
export const passwordSchema = yupString().max(70);

/**
* A stricter email schema that does some additional checks for UX input. (Some emails are allowed by the spec, for
Expand Down

0 comments on commit f36f349

Please sign in to comment.