Merge branch 'RED-9512' into 'main'
RED-9512: added null check for SMTP password when updating configuration See merge request fforesight/tenant-user-management-service!116
This commit is contained in:
commit
f9668a3c07
@ -57,7 +57,7 @@ public class SMTPConfigurationController implements SMTPConfigurationResource, P
|
||||
var propertiesMap = convertSMTPConfigurationModelToMap(smtpConfigurationModel);
|
||||
realmRepresentation.setSmtpServer(propertiesMap);
|
||||
|
||||
if (!smtpConfigurationModel.getPassword().matches("\\**")) {
|
||||
if (smtpConfigurationModel.getPassword() != null && !smtpConfigurationModel.getPassword().matches("\\**")) {
|
||||
realmRepresentation.getAttributesOrEmpty().put(SMTP_PASSWORD_KEY, encryptionDecryptionService.encrypt(smtpConfigurationModel.getPassword()));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user