Skip to content
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

Trim leading & trailing spaces on username or email at the login form #2871

Merged
merged 9 commits into from
Apr 14, 2016
Merged

Trim leading & trailing spaces on username or email at the login form #2871

merged 9 commits into from
Apr 14, 2016

Conversation

netdevfighter
Copy link
Contributor

@RocketChat/core

Closes #2862

Trim leading & trailing spaces on username or email at the login form

@@ -114,10 +114,11 @@ Template.loginForm.events

else
loginMethod = 'loginWithPassword'
emailOrUsername = formData.emailOrUsername.replace /^\s+|\s+$/g, ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could use the trim() from http://epeli.github.io/underscore.string/#in-meteor ?

@netdevfighter
Copy link
Contributor Author

@engelgabriel Thanks for your hint. Have you some documentation about this project for me?

@engelgabriel engelgabriel merged commit 6424697 into RocketChat:develop Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants