-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #5314 Email Address Friendly Name Error #5318
fix #5314 Email Address Friendly Name Error #5318
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable.
I have left a few comments below (most of them try to make this part of the frontend less special)
In my opinion, just make it as a normal text field without regex checking, let "Test" button do the checking. Because the email format regex usually will not be that simple, it may cause unpredictable bugs. RFC 5322 / RFC 822 If really want to check it, finding a well-known library to verify the email address will be better. |
I agree, even if we use a good email validation library like Validator JS, we will still need to use regex for friendly name format validation, and if we are not going in the regex route, better to get rid of it. Sorry for introducing the complexity, I will just change the type to text. Thanks! Let's keep it straightforward, but if you decide otherwise, I am happy to implement validator.js as well! Thanks again! |
@louislam, I have just kept it as a normal text field like you mentioned. Also, I realised, I can't really make ui changes just for SendGrid, it has to be for all providers, sorry about that 😅 |
Description
Fixed: When selecting the SendGrid alert time and entering the "From Email" in the: name format, this gives a validation error
Fixes #5314
Type of change
Checklist
Screenshots (if any)
uptime-kuma.mp4