You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please use the 👍 reaction to show that you are affected by the same issue.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
Steps to reproduce
This error only occures if in your password policy (Settings > Security) you have the minimal password length set to 0.
Connect to the web Front-End of NextCloud
Go to: Users > New user
Try to create a user with a login, username and mail but no password
Expected behaviour
A mail is sent to the new user with an invitation to create its password.
Actual behaviour
A Bad Request occures. The error comes from UserManager which does not have a valid password for the account.
It is because the fallback below does not work: the generated password is an empty string and not null.
How to use GitHub
Steps to reproduce
This error only occures if in your password policy (Settings > Security) you have the minimal password length set to 0.
Expected behaviour
A mail is sent to the new user with an invitation to create its password.
Actual behaviour
A Bad Request occures. The error comes from
UserManager
which does not have a valid password for the account.It is because the fallback below does not work: the generated password is an empty string and not
null
.server/apps/provisioning_api/lib/Controller/UsersController.php
Lines 397 to 408 in e8ce7a3
Adding
|| $password === ''
would fix the issue.The workaround right now is to configure a greater minimal password length than 0.
The text was updated successfully, but these errors were encountered: