Fix login after recent TC auth changes