We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f343e62 + d7558c7 commit 1ad452dCopy full SHA for 1ad452d
1 file changed
qfieldcloud_sdk/cli.py
@@ -133,7 +133,9 @@ def cli(
133
ctx.obj["format_json"] = format_json
134
135
if username or password:
136
- ctx.obj["client"].login(username, password)
+ # Guard against parent 'pre-login' for login subcommand
137
+ if ctx.invoked_subcommand != "login":
138
+ ctx.obj["client"].login(username, password)
139
140
141
@cli.command()
0 commit comments