nc-userimporter
nc-userimporter copied to clipboard
Configuration option `generatepassword` does not work as expected
First of all: Thanks a lot for your work! This script has saved countless hours of adding users to our Nextcloud instance. 👍
We use the generatepassword
configuration option (which is set to yes
by default). Its documentation reads:
Select yes if you want a password to be generated automatically if no password is specified in user-csv-file.
However, the script was not creating passwords, but pointed out that the passwords from the users-csv-file did not have the proper length.
Upon closer inspection, we noticed these two lines:
if not config_GeneratePassword == 'yes':
print ("ATTENTION: You have specified that users for whom no password has been entered will receive an e-mail to set a password for themselves. [...]")
Finally, we were able to achieve the desired functionality by setting the configuration option to something other than yes
.
Shouldn't the line 344 omit the not
part?
Again, thanks for your effort! It's highly appreciated.