Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not wait for new 2FA code on successful login #1

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions filecloudapi/fcserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ def login(self) -> None:
},
)

ok = int(resp.findtext("./command/result", "0")) == 1

if ok:
# We need a new code for the next login
while code == self.twofakeyfun():
time.sleep(1)

self._raise_exception_from_command(resp)

def login_as_admin(self) -> None:
Expand Down Expand Up @@ -220,13 +213,6 @@ def login_as_admin(self) -> None:
},
)

ok = int(resp.findtext("./command/result", "0")) == 1

if ok:
# We need a new code for the next login
while code == self.twofakeyfun():
time.sleep(1)

self._raise_exception_from_command(resp)

def _parseEntry(self, entry: ET.Element) -> FileListEntry:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "filecloudapi-python"
version = "0.1.1"
version = "0.1.2"
description = "A Python library to connect to a Filecloud server"

packages = [{ include = "filecloudapi" }]
Expand Down
Loading