-
Notifications
You must be signed in to change notification settings - Fork 750
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
add .trim to v-model for username #9514
add .trim to v-model for username #9514
Conversation
Build Artifacts
|
Trimming the before and after white space in the username (and reporting an error if it's in the middle) is working a-Ok! 👍🏽 I'm only wondering if we should do the same for passwords...? 🤔 |
The main downside I can see is that if someone does have a space at the beginning or end of their password, they will never be able to login. I did a quick scan of the code, and I can't find any place that we do actually remove whitespace from passwords, so it's very possible these may exist. It's also possible I missed where we do this - so if we are already making sure of this, then this change would be ok. |
But no one is able to save (create account using) the password with the whitespace anyways, as there's an error notification in place for that, right? |
Is there? That's what I was unsure about - whether we do trim or error in this case. |
I was convinced there was the error notification in that case, but after re-checking both 0.15.2 and the asset from this PR, I'm not able to find one (must have been 🤓 dreaming...). So yes, given the above it is unwise to implement the trim for passwords, let's merge this then! |
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.
LGTM! 💯
OK, I think github actions have got confused because this was originally targeted to the develop branch, so the Python 3.4 and 3.5 tests did not run. They should not be affected, so this is safe to merge. |
Summary
Adds
.trim
to the v-model for username on login, so that adding a space before or after the username does not cause a validation failure.References
Fixes #9471
Reviewer guidance
Testing checklist
PR process
Reviewer checklist
yarn
andpip
)