nextcloud / nextcloud/server

[Bug]: "Enforce password protection" can be enabled without "Always ask for a password"

Open
#49,819 0 comments 0 reactions 1 assignee View on GitHub

@kristian-zendato is already working on this.

Since Sep 10, 2026.

0. Needs triage 31-feedback bug feature: settings
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

The option "Enforce password protection" depends on the option "Always ask for a password", but the UI still respects the setting of "Enforce password protection", even though "Always ask for password" is disabled.

Steps to reproduce
  1. Go to Admin settings -> Sharing
  2. Enable both "Always ask for a password" and "Enforce password protection"
  3. Disable "Always ask for a password"
Expected behavior

It depends, either

  • the UI when creating a share link should not enforce a password (as the option is checked in the settings, but disabled, because of "Always ask for password" being unchecked)
  • the admin UI should not depend the option "Enforce password protection" on "Always ask for a password"
Nextcloud Server version

master

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.