Fixup app configure password validation

This commit is contained in:
Johannes Zellner
2016-01-21 15:03:51 +01:00
parent 6a5da2745a
commit 9eeb17c397
2 changed files with 7 additions and 2 deletions

View File

@@ -181,8 +181,9 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appConfigureForm.location.$setPristine();
$('#appConfigureLocationInput').focus();
} else if (error.statusCode === 403) {
$scope.appConfigure.error.password = 'Wrong password provided.';
$scope.appConfigure.error.password = true;
$scope.appConfigure.password = '';
$scope.appConfigureForm.password.$setPristine();
$('#appConfigurePasswordInput').focus();
} else if (error.statusCode === 400 && error.message.indexOf('cert') !== -1 ) {
$scope.appConfigure.error.cert = error.message;