1. Michael K
  2. pizza-auth

Commits

Michael K  committed b1c52f2

Updated mumble-pizza-auth.py to hopefully fix corp ticker issue

  • Participants
  • Parent commits 88646ca
  • Branches feature/mumble-temporary-ops

Comments (0)

Files changed (1)

File config/mumble-pizza-auth.py

View file
  • Ignore whitespace
 						displayname = user_info['display_name']
 						if user_info['password'] == pw:
 							if user_info.get('corporationid', None):
-								corporation = user_info.get('corporationame', 'Guest')
+								corporation = user_info.get('corporationname', 'Guest')
 								if corporation not in CORPORATIONS_TICKER:
 									try:
 										api = eveapi.EVEAPIConnection()
 										ticker = 'GUEST'
 								else:
 									ticker = CORPORATIONS_TICKER[corporation]
-							display_name = "%s - %s" % (ticker, display_name)
-							return (random.choice(range(500000,1000000)) + cfg.user.id_offset, 'G - %s' % (display_name,), [])
+							displayname = "%s - %s" % (ticker, displayname)
+							return (random.choice(range(500000,1000000)) + cfg.user.id_offset, 'G - %s' % (displayname,), [])
 
 				# It was actually a bad login
 				warning("User " + name + " failed with wrong password")