0

Obviously, not submitting that field to the login service works but anyone can override that. Is there a way to disable this feature on the server side entirely?

4

1 回答 1

1

一种方法是注册一个自定义请求过滤器以覆盖并确保它始终为假,例如

RegisterTypedRequestFilter<Authenticate>((req, res, dto) =>
{
    dto.RememberMe = false;
});
于 2014-07-04T18:08:48.587 回答