From d297fa0dd1be6b1e034bca18abb0e4b2b41a4ac9 Mon Sep 17 00:00:00 2001 From: pavelbannov Date: Fri, 26 Nov 2021 21:36:51 +0300 Subject: [PATCH] fix Bug 52071 --- web/ASC.Web.Api/Controllers/AuthenticationController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/ASC.Web.Api/Controllers/AuthenticationController.cs b/web/ASC.Web.Api/Controllers/AuthenticationController.cs index 191d4659c28..eed75f442f4 100644 --- a/web/ASC.Web.Api/Controllers/AuthenticationController.cs +++ b/web/ASC.Web.Api/Controllers/AuthenticationController.cs @@ -436,6 +436,8 @@ private UserInfo GetUser(AuthModel memberModel, out bool viaEmail) { throw new Exception("user not found"); } + + Cache.Insert("loginsec/" + memberModel.UserName, (--counter).ToString(CultureInfo.InvariantCulture), DateTime.UtcNow.Add(TimeSpan.FromMinutes(1))); } else {