Add cert form error reporting to app install form

This commit is contained in:
Johannes Zellner
2015-10-28 22:21:20 +01:00
parent eca328b247
commit 846e5deb36
2 changed files with 7 additions and 1 deletions

View File

@@ -179,7 +179,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appConfigure.error.password = 'Wrong password provided.';
$scope.appConfigure.password = '';
$('#appConfigurePasswordInput').focus();
} else if (error.statusCode === 400 && error.message.indexOf('cert is not valid') !== -1 ) {
} else if (error.statusCode === 400 && error.message.indexOf('cert') !== -1 ) {
$scope.appConfigure.error.cert = error.message;
$scope.appConfigure.certificateFileName = '';
$scope.appConfigure.certificateFile = null;