fixed wrong headers issues in admin

pull/1/head
13621160019@163.com 2021-03-02 14:57:56 +08:00
parent 3e2eae7a77
commit 6797790785
2 changed files with 3 additions and 9 deletions

View File

@ -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) {

View File

@ -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) {