1) Ensure that the next button should be disabled if the password did not match for Azure deployment. Fixes #7616

2) Fixed an issue where Azure cloud deployment failed. Fixes #7617
This commit is contained in:
Yogesh Mahajan
2022-08-18 18:39:52 +05:30
committed by Akshay Joshi
parent 8bcd1e4e60
commit f873ab5374
3 changed files with 8 additions and 1 deletions

View File

@@ -720,7 +720,7 @@ def deploy_on_azure(data):
session['azure_cache_files_list'][p.id] = azure.azure_cache_name
else:
session['azure_cache_files_list'] = {p.id: azure.azure_cache_name}
del session['azure']['azure_cache_file_name']
return True, p, {'label': _label, 'sid': sid}
except Exception as e:
current_app.logger.exception(e)

View File

@@ -264,6 +264,11 @@ export function validateAzureStep3(cloudDBDetails, nodeInfo) {
if (isEmptyString(cloudDBDetails.db_username) || isEmptyString(cloudDBDetails.db_password)) {
isError = true;
}
if (cloudDBDetails.db_password != cloudDBDetails.db_confirm_password || !/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[#$@!%&*?])[A-Za-z\d#$@!%&*?]{8,128}$/.test(cloudDBDetails.db_confirm_password)) {
isError = true;
}
if (isEmptyString(cloudDBDetails.gid)) cloudDBDetails.gid = nodeInfo['server_group']._id;
return isError;
}