Alex Rivera | Logout

How to force the user to change his password after first login?

Asked 2011-03-12T09:47:13.630
10

I want to force the user to change his password after his first login. Now, where should I put the redirection code to ChangePassword page ?

  • If I put it in the Page_Load of Default page, user can move to any page because he is Authenticated.
  • If I put it in the Page_Load of Master page, the ChangePassword page uses the same master page, and it'll enter in an infinit loop of redirections.

    I though of ignoring the redirection if the Page is the ChagePassword page from the Master page, and I found this answer which says:

    This sounds like a bad idea to start with. The idea of the master is that it shouldn't care what page is there as this is all common code for each page.

Any suggestion!

Edit
Report

1 Answer

0

You may handle the following events of the Login control,

•LoggedIn •LoggingIn

Good luck, I hope this helps.

answered 2011-03-12T09:59:12.283

Your Answer