| | |
| | | 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; |
| | |
| | | |
| | | return Json(data); |
| | | } |
| | | |
| | | [HttpGet, Route("SerializeJwt"), AllowAnonymous] |
| | | public WebResponseContent SerializeJwt(string code) |
| | | { |
| | | return WebResponseContent.Instance.OK(data: JwtHelper.SerializeJwt(code)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 替换Token(刷新令牌) |
| | | /// </summary> |
| | |
| | | { |
| | | 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); |
| | | } |
| | | } |
| | | |
| | |
| | | public string name { get; set; } |
| | | public string pwd { get; set; } |
| | | } |
| | | } |
| | | } |