fixed wrong headers issues in admin
parent
3e2eae7a77
commit
6797790785
|
@ -85,9 +85,7 @@ app.controller('LoginController', function ($rootScope,
|
||||||
|
|
||||||
$scope.logout = function () {
|
$scope.logout = function () {
|
||||||
let data = null;
|
let data = null;
|
||||||
let headers = {
|
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
|
||||||
User_UUID: $scope.cur_user.uuid,
|
|
||||||
Token: $scope.cur_user.token };
|
|
||||||
LoginService.logout(data, headers, function (error, status, headers) {
|
LoginService.logout(data, headers, function (error, status, headers) {
|
||||||
if (angular.isDefined(status) && status == 200) {
|
if (angular.isDefined(status) && status == 200) {
|
||||||
var popType = 'TOASTER.SUCCESS';
|
var popType = 'TOASTER.SUCCESS';
|
||||||
|
@ -158,9 +156,7 @@ app.controller('LoginController', function ($rootScope,
|
||||||
old_password: user.old_password,
|
old_password: user.old_password,
|
||||||
new_password: user.new_password };
|
new_password: user.new_password };
|
||||||
|
|
||||||
let headers = {
|
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
|
||||||
User_UUID: $scope.cur_user.uuid,
|
|
||||||
Token: $scope.cur_user.token };
|
|
||||||
|
|
||||||
UserService.changePassword(data, headers, function (error, status) {
|
UserService.changePassword(data, headers, function (error, status) {
|
||||||
if (angular.isDefined(status) && status == 200) {
|
if (angular.isDefined(status) && status == 200) {
|
||||||
|
|
|
@ -172,9 +172,7 @@ app.controller('UserController', function ($scope,
|
||||||
name: modifiedUser.name,
|
name: modifiedUser.name,
|
||||||
password: modifiedUser.password };
|
password: modifiedUser.password };
|
||||||
|
|
||||||
let headers = {
|
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
|
||||||
User_UUID: $scope.cur_user.uuid,
|
|
||||||
Token: $scope.cur_user.token };
|
|
||||||
|
|
||||||
UserService.resetPassword(data, headers, function (error, status) {
|
UserService.resetPassword(data, headers, function (error, status) {
|
||||||
if (angular.isDefined(status) && status == 200) {
|
if (angular.isDefined(status) && status == 200) {
|
||||||
|
|
Loading…
Reference in New Issue