Skip to content

fix: enable login when there is at least one auth method available - #809

Merged
suricactus merged 2 commits into
masterfrom
fix/enable-login-groupbox-if-no-password-login-enabled
Jun 10, 2026
Merged

suricactus merged 2 commits into
masterfrom
fix/enable-login-groupbox-if-no-password-login-enabled

Conversation

@gounux

@gounux gounux commented Jun 9, 2026

Copy link
Copy Markdown
Member

This PR intends to make QFieldSync cloud login dialog follow the targetted QFieldCloud instance configuration, e.g. login enabled or not the credentials login inputs depending on if the password login is enabled or not on the QFC instance.

If a QFieldCloud instance is configured with no password login, currently the login groupbox stays disabled, so it prevents the user from clicking on a 3rd party IDP login button.

Now, with this PR :

Login enabled in QFieldCloud Login disabled in QFieldCloud
image image
Username & password line edits + Sign In button are enabled. Username & password line edits + Sign In button are disabled.

Also, getting rid of this set_login_groupbox_visibility method which was uncorrectly named and was only setting a groupbox enabled or not.

Fixes #807

@lukasgraf lukasgraf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! LGTM! 👍 🎉

@suricactus
suricactus merged commit 5428ca6 into master Jun 10, 2026
9 checks passed
@suricactus
suricactus deleted the fix/enable-login-groupbox-if-no-password-login-enabled branch June 10, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not possible to authenticate towards qfieldcloud instance without password login (only SSO) (solution supplied)

3 participants