Extra spaces after username prevent login

48 views
Skip to first unread message

Adam

unread,
Jun 22, 2012, 8:42:11 AM6/22/12
to clip...@googlegroups.com
A number of times I have accidently typed an extra space character after my username (mainly on my mobile device). The extra space becomes part of the username. I don't know if this is the expected behavior or not.

Josh

unread,
Jun 22, 2012, 10:03:44 AM6/22/12
to clip...@googlegroups.com
> behavior or not. --
> You received this message because you are subscribed to the Google
> Groups "Clipperz" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/clipperz/-/xzcRdvLuIpAJ.
> To post to this group, send email to clip...@googlegroups.com.
> To unsubscribe from this group, send email to
> clipperz+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/clipperz?hl=en.
It's expected behavior. The username and password are hashed together.
You can even have the same username with different passwords and they
are completely separate.

-josh

giulio...@gmail.com

unread,
Jun 22, 2012, 10:44:15 AM6/22/12
to adbo...@gmail.com, clip...@googlegroups.com
Hello Adam,

we take both username and password field values as they are, and we do
make as little assumptions as possible about what they do contain. We
just transform everything into an array of bytes, using UTF-8
encoding; that's it.

Taken to its extreme, you may have a fully valid account using for
both username and password just spaces. You may end up having problems
based on how we mix together username and password values to create
your actual credentials, but in theory you could do it.

Giulio Cesare
Reply all
Reply to author
Forward
0 new messages