Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

CAPS LOCK [Dec. 11th, 2006|08:11 pm]
LiveJournal Client Discussions



Today’s lesson: don’t let your users sign in with a CAPITALISED USERNAME.

LJ will let you in, but later on you won’t get any kind of data (at least so it looks in my client).

PS: Okay, not really a Caps Lock matter, as then the password is very likely to be wrong too — but how about someone preferring to log in as “Username” rather than “username”? :)


[User Picture]From: int
2006-12-12 01:46 am (UTC)
IIRC it'll spit out an incorrect user/pass combo if you try to generate a session cookie going like that too. I think the easiest way to do get around it is to just send username.toLowerCase().
(Reply) (Thread)
[User Picture]From: ralesk
2006-12-12 01:55 am (UTC)

I’m aware of the solution, but I have to tell you that you’re actually wrong. Upon successfully logging in as RALESK with my password typed correctly, I received:

ralesk@eretnek:~/Work/SVN/ljklient/branches/ljklient-0.0.x$ ./ljklient.py
{'ljsession': 'v1:u11330573:s70:abGqrGGJj2K//Thanks+for+signing+in+/+Live
Journal+loves+you+a+lot+/+Here+have+a+cookie', 'success': 'OK'}
(Reply) (Parent) (Thread)
[User Picture]From: int
2006-12-12 02:01 am (UTC)
I just went through old journal entries to see if I was imagining this or not, and it definitely used to happen. Must've been fixed since (this was ~2 years ago).
(Reply) (Parent) (Thread)