auth icon indicating copy to clipboard operation
auth copied to clipboard

feat: add max length check for email

Open LashaJini opened this issue 4 months ago • 1 comments

What kind of change does this PR introduce?

feature: add max length check for email.

What is the current behavior?

Currently, email length is only checked on db side. Email has max length 255 characters, when user sends (>255 characters) large email to /admin/users endpoint, db is doing unnecessary queries.

Screenshot from 2024-03-30 02-40-54

What is the new behavior?

Code returns early if user enters large email. There will be no db queries.

Screenshot from 2024-03-30 02-44-31

LashaJini avatar Mar 29 '24 22:03 LashaJini