code: def _login(self, user, password, restrict_login=None):
          
          payload = {'login': user, 'password': password}
          if restrict_login:
              payload['restrict_login'] = True
  
          return self._proxy.User.login(payload)
docs: Backend login method for Bugzilla3