SuiteCRM icon indicating copy to clipboard operation
SuiteCRM copied to clipboard

Fix #9676 - Control the system-generated password process

Open SinergiaCRM opened this issue 2 years ago • 0 comments

Solves #9676

Description

A validation is added when saving the configuration for the process of managing passwords, so that if the Enable System-Generated Passwords Feature property is activated, it is verified that there is a template indicated in the For system-generated password field

In addition, in the process of creating a new user, the value of the Enable System Generated Passwords Feature property is checked so that if it is activated, the email will be sent to the user and if it is not activated, it will not.

Motivation and Context

Resolve conflicts in the system-generated password process

How To Test This

  1. Go to Password Management
  2. Click the Enable System Generated Passwords Feature option and select the None option in the field For system generated password
  3. Click on Save and check that a validation error is displayed in the field For system generated password
  4. Uncheck the Enable System Generated Passwords Feature option and select the System Generated Password template in the field For system generated password
  5. Create a new user and check that no email arrives indicating a password generated automatically by the system.

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • [x] My code follows the code style of this project found here.
  • [ ] My change requires a change to the documentation.
  • [x] I have read the How to Contribute guidelines.

SinergiaCRM avatar Jul 21 '22 07:07 SinergiaCRM