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

@@ -37,7 +37,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
Client.removeUser($scope.userremove.userInfo.id, $scope.userremove.password, function (error) {
$scope.userremove.busy = false;
if (error && error.statusCode === 401) {
if (error && error.statusCode === 403) {
$scope.userremove.error.password = 'Wrong password';
$scope.userremove.password = '';
$scope.userremove_form.password.$setPristine();
@@ -378,7 +378,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
Client.removeGroup($scope.groupRemove.group.id, $scope.groupRemove.password, function (error) {
$scope.groupRemove.busy = false;
if (error && error.statusCode === 401) {
if (error && error.statusCode === 403) {
$scope.groupRemove.error.password = 'Wrong password';
$scope.groupRemove.password = '';
$scope.groupRemoveForm.password.$setPristine();