Skip to content

Commit 220d66d

Browse files
Merge pull request #1 from codelathe/bugfix/Do-not-wait-for-new-2FA-code-on-successfull-login
Do not wait for new 2FA code on successful login
2 parents 12d8614 + 1ba675b commit 220d66d

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

filecloudapi/fcserver.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,6 @@ def login(self) -> None:
180180
},
181181
)
182182

183-
ok = int(resp.findtext("./command/result", "0")) == 1
184-
185-
if ok:
186-
# We need a new code for the next login
187-
while code == self.twofakeyfun():
188-
time.sleep(1)
189-
190183
self._raise_exception_from_command(resp)
191184

192185
def login_as_admin(self) -> None:
@@ -220,13 +213,6 @@ def login_as_admin(self) -> None:
220213
},
221214
)
222215

223-
ok = int(resp.findtext("./command/result", "0")) == 1
224-
225-
if ok:
226-
# We need a new code for the next login
227-
while code == self.twofakeyfun():
228-
time.sleep(1)
229-
230216
self._raise_exception_from_command(resp)
231217

232218
def _parseEntry(self, entry: ET.Element) -> FileListEntry:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22

33
name = "filecloudapi-python"
4-
version = "0.1.1"
4+
version = "0.1.2"
55
description = "A Python library to connect to a Filecloud server"
66

77
packages = [{ include = "filecloudapi" }]

0 commit comments

Comments
 (0)