Skip to content

Commit b03b082

Browse files
authored
Merge pull request #287 from NoahMLoomis/master
Removed '@' check in username check
2 parents 5e4fe6b + c11bd0e commit b03b082

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

garminconnect/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,6 @@ def login(self, /, tokenstore: str | None = None) -> tuple[str | None, str | Non
368368
"Username and password are required"
369369
)
370370

371-
# Validate email format when actually used for login
372-
if not self.is_cn and self.username and "@" not in self.username:
373-
raise GarminConnectAuthenticationError(
374-
"Email must contain '@' symbol"
375-
)
376-
377371
if self.return_on_mfa:
378372
token1, token2 = self.garth.login(
379373
self.username,

0 commit comments

Comments
 (0)