mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-30 05:36:37 +08:00
优化代码
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -109,6 +110,7 @@ namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
/// <param name="pwdDto"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[Authorize]
|
||||
public async Task<Result> ChangePassword(ChangePwdDto pwdDto)
|
||||
{
|
||||
var uid= pwdDto.user.id;
|
||||
|
||||
Reference in New Issue
Block a user