Skip to content

Commit

Permalink
improve public key regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
0xChqrles committed Jul 3, 2024
1 parent a45fcb6 commit 9daa2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/routes/verifyOtp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export function verifyOtp(
properties: {
phone_number: { type: 'string', pattern: '^\\+[1-9]\\d{1,14}$' },
sent_otp: { type: 'string', pattern: '^[0-9]{6}$' },
public_key_x: { type: 'string', pattern: '^0x[0-9a-fA-F]{54,64}$' },
public_key_y: { type: 'string', pattern: '^0x[0-9a-fA-F]{54,64}$' },
public_key_x: { type: 'string', pattern: '^0x[0-9a-fA-F]+$' },
public_key_y: { type: 'string', pattern: '^0x[0-9a-fA-F]+$' },
},
},
},
Expand Down

0 comments on commit 9daa2ef

Please sign in to comment.