disabling a user in a "logged in" area followed by a redirect

Justin Bowers asked on April 7, 2015 17:23

We have a situation where we are needing to have a "temporary" user finish up a form submission process, have their account disabled and then be redirected to a "thank you" page. The current issue is that upon the UserInfoProvider invoked "disable," the user is automatically redirected to the login page. Is there a way to disable the user and redirect to the "thank you" page without having to go to the login page?

Correct Answer

Brenden Kehren answered on April 7, 2015 17:35

That is the default action of disabling a user. You might want to look at adding another property to the user to perform that checking. Then in code, redirect them, log them out, and then disable them.

2 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.