Basic encrpytion support, needs more work. Introduces new dependency pycrypto

This commit is contained in:
Ammar Askar committed 2012-09-04 06:57:22 +05:00
1 parent 75a68b3a9e
commit fb7b22b771
5 files changed
+315 -170

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ if __name__ == "__main__":
user = raw_input("Enter your username: ")
passwd = getpass.getpass("Enter your password: ")
derp = NoGUIstuff.loginToMinecraft(user, passwd)
if(derp['Response'] == "Incorrect username/password" or derp['Response'] == "Can't connect to minecraft.net"):
if(derp['Response'] == "Incorrect username/password" or derp['Response'] == "Can't connect to minecraft.net" or derp['Response'] == "Account migrated, use e-mail as username."):
print derp['Response']
sys.exit()
sessionid = derp['SessionID']