fixed wrong headers issues in admin

Merge branch 'develop'
pull/12/head
13621160019@163.com 2021-03-02 14:59:32 +08:00
commit a1be1bea0a
2 changed files with 3 additions and 9 deletions

View File

@ -85,9 +85,7 @@ app.controller('LoginController', function ($rootScope,
$scope.logout = function () {
let data = null;
let headers = {
User_UUID: $scope.cur_user.uuid,
Token: $scope.cur_user.token };
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
LoginService.logout(data, headers, function (error, status, headers) {
if (angular.isDefined(status) && status == 200) {
var popType = 'TOASTER.SUCCESS';
@ -158,9 +156,7 @@ app.controller('LoginController', function ($rootScope,
old_password: user.old_password,
new_password: user.new_password };
let headers = {
User_UUID: $scope.cur_user.uuid,
Token: $scope.cur_user.token };
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
UserService.changePassword(data, headers, function (error, status) {
if (angular.isDefined(status) && status == 200) {

View File

@ -172,9 +172,7 @@ app.controller('UserController', function ($scope,
name: modifiedUser.name,
password: modifiedUser.password };
let headers = {
User_UUID: $scope.cur_user.uuid,
Token: $scope.cur_user.token };
let headers = { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token };
UserService.resetPassword(data, headers, function (error, status) {
if (angular.isDefined(status) && status == 200) {