wrong password is 401

This commit is contained in:
Girish Ramakrishnan
2018-06-15 20:54:15 -07:00
parent 7f11cc0daf
commit 63f2bbb253
6 changed files with 7 additions and 7 deletions

View File

@@ -38,7 +38,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 === 403) {
if (error && error.statusCode === 401) {
$scope.userremove.error.password = 'Wrong password';
$scope.userremove.password = '';
$scope.userremove_form.password.$setPristine();
@@ -306,7 +306,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 === 403) {
if (error && error.statusCode === 401) {
$scope.groupRemove.error.password = 'Wrong password';
$scope.groupRemove.password = '';
$scope.groupRemoveForm.password.$setPristine();