-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
usernames in # + # should not case sensitive #65
Comments
Fixed in master. Will be part of 0.5.4. |
will this be released soon? still on 0.5.3 in atmosphere |
We are prepping for a release tonight. I've bumped the version and I am ready to tag and release it once the docs are up to date. |
I think this issue has a whole host of corner cases we didn't consider:
|
I'd say we should deal with it in our package the way we want it to work. While emails are case sensitive in the spec, I don't think that's really followed in practice, is it? I'm OK w storing usernames with their capitalization, but when comparing we would need to lowerCase both sides of the expression. |
is the comparison evening happening in accounts-entry? this same issue is currently getting tracks accounts-password: meteor/meteor#550 |
Having read both threads, I would lean toward making an option to make the user name case insensitive and always making the email case insensitive. As far as the production work I have done, both user name and email are toLowerCase. I believe that doing the work on the server is a much more elegant solution that the one I submitted. I do think the fields need to be stored as lowerCase because the way meteor works by default if you only make the test case insensitive you may still get two different users who's logins resolve only to one user. Unless i am missing something. Good catch on this tho. As far as should accounts-entry deal with it. I don't think so. If there is a clear way to make the data save on the server side as the developer wants, then no, ignore the issue and undo my changes. |
Added the following server side,
This gave me lowercased username and email addresses. However it broke the following...
At this point if I have not confused the issue too much, the problem does need to be addressed on both server and client. If the client interface takes care of it all, the server may not need to. If Meteor.loginWithPassword took care of the comparison it might not be an issue for you. |
Take Two on Case Sensitive Username and Email - #65
Is there a strategy for solving this going forward? |
This Issue has been taken care of in the Pull Request #101. I added two new client options for setting the username and email to lowercase. |
I might be wrong but it seems like usernames now default to being automatically converted to lowercase? I don't mind case-insensitive sign-in, but now if I enter "Sacha" as a username it then becomes "sacha" instead. |
lowercase the form input before sending it to be validated
The text was updated successfully, but these errors were encountered: