Skip to content

feat: setting to hide the default login form - #1562

Open
rizlas wants to merge 1 commit into
nextcloud:mainfrom
ConsortiumGARR:hide-default-login
Open

rizlas wants to merge 1 commit into
nextcloud:mainfrom
ConsortiumGARR:hide-default-login

Conversation

@rizlas

@rizlas rizlas commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

As discussed #1378 this adds an admin setting to hide the default login form.

Setting Description
hide_default_login Hide the username/password login form, keeping only the OIDC provider buttons. A "Log in with username or email" link reveals it again

It is registered with registerAlternativeLogin(), so it works alongside both the legacy login registration (NC < 34) and IAlternativeLoginProvider (NC >= 34).

🤖 AI (if applicable)

  • AI was used to help me extract this single feature out of an earlier commit from our fork that included several unrelated changes together, adapt it to the current code and test it on fully functional Nextcloud instances (33 and 34).

Signed-off-by: rizlas <rizlas@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@CarlSchwan

Copy link
Copy Markdown
Member

I think this belongs in server and not here. We need the same feature for user_saml and we shouldn't have a hack to make it work.

I will see if I can implement it

@rizlas

rizlas commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

That's fine and makes sense, I wasn't aware of user_saml. Should I close this PR or keep it open until then? Do you need any help from my side? Maybe for testing or stuff like that?

@shiruba

shiruba commented Dec 1, 2026

Copy link
Copy Markdown

This would be a useful feature that I was specifically looking for. Let me know if I can support in testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants