3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
257 stars 143 forks source link

[Bug]: Password field always appears on new user creation page #3999

Open jfoucher opened 11 months ago

jfoucher commented 11 months ago

What is the bug?

When I try to create a new user, the form shows the password field instead of sending the new user an email to set their own password. Capture d’écran 2023-12-04 à 11 02 38

Steps to reproduce the issue

I am not sure, but I could not get it to go away with any combination of parameters in localconfig.ini.php or profiles.ini.php I thought maybe if no email sending was configured it would show up by default, by even with an email server configured and working, the password field is still present.

Versions

Capture d’écran 2023-12-04 à 11 05 04

Check Lizmap plugin

QGIS server version, only if the section above doesn't mention the QGIS Server version

3.28.13

Operating system

Ubuntu 22.04

Browsers

Firefox

Browsers version

120.0

Relevant log output

No response

Gustry commented 11 months ago

Did you setup this step ? https://docs.lizmap.com/current/fr/install/configuration.html#setting-password-for-users You didn't change this your config, only updated LWC ?

CC @laurentj

jfoucher commented 11 months ago

Hi @Gustry and thanks for the reply. Yes, I did try changing this setting, but it does not have any effect at all, whether I set it to on or off Removing the setting does not change anything either.

laurentj commented 10 months ago

Lizmap can not send an email, if there is no sender email indicated into the Lizmap configuration panel. And so it displays the password field when creating a user. For example:

image

Is this field is empty or not into your lizmap configuration panel?

Mavialle commented 10 months ago

Hello everyone,

And tkank you for yours replies. Finally, we resolved the problem in Lizmap admin, et not server configuration. We just changed to 'Yes' for 'change user password' in the group's rights (I don't know if it's exactly that in english, I work in french). Because it's easier than change localconfig.ini.php, do I update the doc https://docs.lizmap.com/current/fr/install/configuration.html#setting-password-for-users ?