SpoutDev/Spout — Issue #912: Launcher remembers wrong User Credentials/has Problems with Case Sensivity
Author: Ka-Jan
Created: 2011-11-08 09:44:44+00:00
State: open

# Abstract
Sometimes it seems that the Launcher remembers the Wrong User Credentials when Logging in.
It reports a bad Username / Password Combination - when I enter the unchanged Credentials It works again.

## Description
If the Error happens I open up the Vanilla Client and Cross Test if the MC Login Appliance is running which is most of the time the Case and on the Vanilla Client login usually works. So I'm quite sure that it isn't a Problem neither with my Credentials nor with the Login Server.

My Username on Minecraft is KuatsuJanka - you see the first Letters are in Upper Case - anyhow I usually log in as kuatsujanka which is all lower case. Neither MC.net nor the Vanilla or Spout Launcher has problems with any of the two notations.

When I log in using Spout with the second Username (LC) it seems to pull my Username from MC and stores it locally. Also it replaces the Username in the Username Field which is okay because it has to store the Credentials anyway if you click on "Remember me".

Also it doesn't make a difference if I press on the Username Button on the left Hand nor if I click simply on Login. Also if the Error happens it persists till i enter my Credentials anew.

# Assumption
I can't figure out what the Problem might be without looking at the Code. MC.net surely does not use Case Sensivity because if it is so I could not log in on MC.net with any variation of my Username. Of course I didn't test if i can log in with something like kUATSUjANKA and sorts but I don't think that would make a Difference.
Maybe the Credentials are differently stored (in matter of type)? I assume that the Login Data is pulled out of the Textboxes and stored as some sort of Object and thus saved locally. Maybe the Username from MC.net isn't a String but some other type? But that makes absolutly no sense.

The only other possibility I can think of is something I only seen once in WinForms / C#. And that was not a Text Box but a Rich Text Box and what happend was that every String of the TextBox was parsed and pre-formatted so you could not simply append a String because the Formatting would freak out.

But maybe the String pulled from MC.net is not properly Sanitized and has a LineBreak or something else? Something you usually not See. Or a leading of following space? I don't know if MC.net checks for this but if not "kuatsujanka ", " kuatsujanka" and "kuatsujanka" aren't the same. But you know that as good as I know.

## Caveats
This Problem is kinda hard to reproduce and I can't get it to shine up If I want to because it seems to be fixed as soon as you enter the Credentials. Also I could not reproduce this Bug with other Peoples Accounts like those of my brother in law nor my girlfriends.

Thanks for Reading.