nuxsmin / sysPass

Systems Password Manager
https://syspass.org
GNU General Public License v3.0
975 stars 208 forks source link

Password generator doesn't respect Password preset #1427

Open twindscheif opened 5 years ago

twindscheif commented 5 years ago

sysPass Version 3.1

Describe the bug If a password preset is configured based on e.g. user-profile and you create a new account, the password generator in the account creation view doesn't respect these values. If you click on generate password, password is generated. If you then choose save an error message appears with the error that the password is too short.

To Reproduce Steps to reproduce the behavior:

  1. Configured a password preset to force password length with 16 characters
  2. Create new account
  3. Generate Password
  4. Save Account
  5. error message "password needs to be 16 characters long" is shown.

Expected behavior The password generator generates a password which complies with the password preset.

Screenshots syspass_3 1_password_preset syspass_3 1_generate_password syspass_3 1_error_password_to_short syspass_3 1_password_generator_complexity

Platform (please complete the following information): centOS 7 Firefox 68.0.2

nuxsmin commented 5 years ago

Hello, this is the expected behavior, since password preset is a server side feature, and it isn't related to the client side password generator. It would be so in future releases and then it will include synching some settings between the server and client side.

Thanks for the feedback!