如何在ASP.NET Identity Core 2.0中防止来自同一用户的多次登录

时间:2018-08-05 06:37:07

标签: asp.net-identity asp.net-core-2.0

我想防止同一用户多次登录。我在 ConfigureServices 块中添加了 ValidationInterval 。但不起作用。

我输入了我的代码:

 services.Configure<SecurityStampValidatorOptions>
(
   options => options.ValidationInterval=TimeSpan.FromMinutes(20)
);

亲切的问候, 马克苏德

0 个答案:

没有答案
相关问题