Skip to content

Commit

Permalink
🐞 fix: verification of first and last name for new member registration
Browse files Browse the repository at this point in the history
  • Loading branch information
shurco committed Jul 10, 2024
1 parent ede3567 commit 1711872
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
"postcss-nesting": "^12.1.5",
"prettier": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.5",
"sass": "^1.77.6",
"sass": "^1.77.7",
"tailwindcss": "^3.4.4",
"typescript": "^5.5.3",
"typescript-eslint": "^7.15.0",
"typescript-eslint": "^7.16.0",
"vite": "^5.3.3",
"vite-plugin-svg-icons": "^2.0.1",
"vite-plugin-vue-devtools": "^7.3.5"
Expand Down
4 changes: 2 additions & 2 deletions src/proto/member.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1123,8 +1123,8 @@ class AddMemberInvite_Request$Type extends MessageType<AddMemberInvite_Request>
super("member.AddMemberInvite.Request", [
{ no: 1, name: "owner_id", kind: "scalar", localName: "owner_id", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { uuid: true } } } },
{ no: 2, name: "project_id", kind: "scalar", localName: "project_id", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { string: { uuid: true } } } },
{ no: 3, name: "user_name", kind: "scalar", localName: "user_name", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { cel: [{ id: "valid_user_name", message: "required field (3 to 30 characters)", expression: "this.matches('^[a-z0-9]{3,20}$')" }] } } },
{ no: 4, name: "user_surname", kind: "scalar", localName: "user_surname", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { cel: [{ id: "valid_user_surname", message: "required field (3 to 30 characters)", expression: "this.matches('^[a-z0-9]{3,20}$')" }] } } },
{ no: 3, name: "user_name", kind: "scalar", localName: "user_name", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { cel: [{ id: "valid_user_name", message: "required field (3 to 30 characters)", expression: "this.matches('^[A-Za-z0-9]{3,20}$')" }] } } },
{ no: 4, name: "user_surname", kind: "scalar", localName: "user_surname", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { cel: [{ id: "valid_user_surname", message: "required field (3 to 30 characters)", expression: "this.matches('^[A-Za-z0-9]{3,20}$')" }] } } },
{ no: 5, name: "email", kind: "scalar", T: 9 /*ScalarType.STRING*/, options: { "buf.validate.field": { cel: [{ id: "valid_email", message: "must be a valid email", expression: "this.isEmail()" }] } } }
]);
}
Expand Down

0 comments on commit 1711872

Please sign in to comment.