Commit 27456807 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #18428 TIME 0:30 check if m2m password is already exists if xml config file

parent 9d05404a
......@@ -367,9 +367,10 @@ class ConfigurationController
$path = $defaultPath;
}
$xmlConfig = ReceiveMessageExchangeController::readXmlConfig();
$communication = [];
$login = '';
$password = '';
$password = $xmlConfig['m2m_password'] ?? '';
if(!empty($body['communications']['login'])) {
$login = $body['communications']['login'];
}
......
......@@ -367,7 +367,7 @@ export class MaarchToMaarchParametersComponent implements OnInit {
this.http.put('../rest/m2m/configuration', { configuration: this.formatConfiguration() }).pipe(
tap(() => {
this.notify.success(this.translate.instant('lang.dataUpdated'));
// this.passwordAlreadyExists = this.functionsService.empty(this.communications['password'].value) ? false : true;
this.passwordAlreadyExists = (this.functionsService.empty(this.communications['password'].value) && this.passwordAlreadyExists) || (!this.functionsService.empty(this.communications['password'].value));
}),
catchError((err: any) => {
this.notify.handleErrors(err);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment