Skip to content

Disabled User can still use the website #15717

Answered by lampersky
justsWn asked this question in Q&A
Discussion options

You must be logged in to vote

@justsWn By default security stamps have 30 minutes validation interval.
You can configure it to 0 minutes. This way, once a user is disabled (or role is edited), he or she will lose access within the next request.

services.Configure<SecurityStampValidatorOptions>(options =>
{
    options.ValidationInterval = TimeSpan.Zero;
});

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@justsWn
Comment options

Answer selected by justsWn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants