fix: remove cache for method
This commit is contained in:
parent
f5739647b2
commit
c9ebddf27a
@ -165,7 +165,6 @@ public class AuthController(IOptionsSnapshot<Admin> user, AuthService auth, Pass
|
|||||||
[HttpGet("GetRole")]
|
[HttpGet("GetRole")]
|
||||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[CacheMaxAge(0, 0, 1)]
|
|
||||||
public ActionResult<AuthRoles> GetRole() => Ok(AuthRoles.Admin);
|
public ActionResult<AuthRoles> GetRole() => Ok(AuthRoles.Admin);
|
||||||
|
|
||||||
[HttpPost("RenewPassword")]
|
[HttpPost("RenewPassword")]
|
||||||
|
Loading…
Reference in New Issue
Block a user