-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow using username
and email
in SMTP configuration
#3398
Conversation
username
or email
in SMTP configuration
username
or email
in SMTP configurationusername
and email
in SMTP configuration
Co-authored-by: Zainab Elgohary <40770501+zaelgohary@users.noreply.github.com>
Co-authored-by: Zainab Elgohary <40770501+zaelgohary@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
please mention the idea behind the validation rules, 69 characters, and the regex of the username |
Co-authored-by: Omar Kassem <omarksm09@gmail.com>
}); | ||
|
||
it("returns an error message for white spaces in username", () => { | ||
const input = "invalid username"; |
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.
there're more types of spaces beyond " "
there's is \t
and \v
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.
noted in the current validation.
- Accept usernames that contain dashs and underscores and it must start with an alphabetical character and validate them
return isDiscourse ? undefined : validators.isEmail('Please provide a valid email address.')(v); | ||
validators.required('Email or Username is required.'), | ||
validators.minLength('Username must be at least 2 characters.', 2), | ||
validators.maxLength('Username must be at least 50 characters.', 50), |
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.
we shouldn't use the at least
on max length
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.
also is this validation on user name only? what if the email exceeds the 50 char ? the length validation message will appear
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.
done
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.
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.
@0oM4R ok, open an issue for this please |
Description
isDiscourse
check and apply adding email or username for all apps with SMTP.sendgrid
documentationChanges
Related Issues
Tested Scenarios
Documentation PR
SMTP Server
docs info_grid#645Checklist