wanshenmean
3 天以前 4b483d9d06bead231b88ca212fd799196668a057
Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/System/Sys_UserController.cs
@@ -1,17 +1,12 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using Newtonsoft.Json;
using StackExchange.Profiling;
using WIDESEA_Core;
using WIDESEA_Core.Authorization;
using WIDESEA_Core.BaseController;
using WIDESEA_Core.Caches;
using WIDESEA_Core.Const;
using WIDESEA_Core.Extensions;
using WIDESEA_Core.Helper;
using WIDESEA_Core.HttpContextUser;
using WIDESEA_Core.Utilities;
using WIDESEA_ISystemService;
using WIDESEA_Model;
@@ -114,11 +109,13 @@
            return Json(data);
        }
        [HttpGet, Route("SerializeJwt"), AllowAnonymous]
        public WebResponseContent SerializeJwt(string code)
        {
            return WebResponseContent.Instance.OK(data: JwtHelper.SerializeJwt(code));
        }
        /// <summary>
        /// 替换Token(刷新令牌)
        /// </summary>
@@ -150,18 +147,18 @@
            {
                return responseContent.Error(ex.Message);
            }
        }
        /// <summary>
        /// 更新密码
        /// </summary>
        /// <param name="password">密码</param>
        /// <param name="userName">用户名</param>
        /// <returns></returns>
        [HttpPost,Route("ModifyUserPwd")]
        [HttpPost, Route("ModifyUserPwd")]
        public WebResponseContent ModifyUserPwd(string password, string userName)
        {
            return Service.ModifyUserPwd(password,userName);
            return Service.ModifyUserPwd(password, userName);
        }
    }
@@ -170,4 +167,4 @@
        public string name { get; set; }
        public string pwd { get; set; }
    }
}
}