Exemple #1
0
 def login(self, username: str, password: str, steam_guard: str) -> None:
     self.steam_guard = guard.load_steam_guard(steam_guard)
     self.username = username
     self._password = password
     LoginExecutor(username, password, self.steam_guard['shared_secret'], self._session).login()
     self.was_login_executed = True
     self.market._set_login_executed(self.steam_guard, self._get_session_id())
Exemple #2
0
 def login(self, username: str, password: str, steam_guard: str) -> None:
     self.steam_guard = guard.load_steam_guard(steam_guard)
     self.username = username
     self._password = password
     LoginExecutor(username, password, self.steam_guard['shared_secret'], self._session).login()
     self.was_login_executed = True
     self.market._set_login_executed(self.steam_guard, self._get_session_id())
Exemple #3
0
 def _fetch_shared_secret(self, mafile):
     shared_secret = None
     if mafile is not None:
         if isinstance(mafile, str):  # if json
             self.mafile = guard.load_steam_guard(mafile)
         else:
             self.mafile = mafile
         shared_secret = self.mafile['shared_secret']
     return shared_secret
Exemple #4
0
 def login(self,
           username: str = None,
           password: str = None,
           steam_guard: str = None,
           rucaptcha_key: str = None) -> None:
     if steam_guard:
         self.steam_guard = guard.load_steam_guard(steam_guard)
     if username:
         self.username = username
     if password:
         self._password = password
     if rucaptcha_key:
         self._rucaptcha_key = rucaptcha_key
     LoginExecutor(self.username, self._password,
                   self.steam_guard['shared_secret'], self._session,
                   self._rucaptcha_key, self.rucaptcha_kwargs).login()
     self.was_login_executed = True
     self.market._set_login_executed(self.steam_guard,
                                     self._get_session_id())
Exemple #5
0
 def login(self, username: str, password: str, steam_guard: str) -> None:
     self.steam_guard = guard.load_steam_guard(steam_guard)
     LoginExecutor(username, password, self.steam_guard['shared_secret'],
                   self._session).login()
     self.isLoggedIn = True