Check for 403 for incorrect password

This commit is contained in:
Girish Ramakrishnan
2018-06-18 18:57:00 -07:00
parent 12b1909c7a
commit b9a6f46543
5 changed files with 6 additions and 6 deletions

View File

@@ -291,7 +291,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appRestore.error.password = null;
Client.restoreApp($scope.appRestore.app.id, $scope.appRestore.selectedBackup.id, $scope.appRestore.password, function (error) {
if (error && error.statusCode === 401) {
if (error && error.statusCode === 403) {
$scope.appRestore.password = '';
$scope.appRestore.error.password = true;
$('#appRestorePasswordInput').focus();