locked
Force user to change password on next login RRS feed

  • Question

  • User1291671979 posted

    Hi Guys

    Can you tell me if this is possible using Membership with C#: I want to create a user and assign a default password to it, and when the user logs on for the first time they will be forced to change the password to something else.

    If this is possible, how would I do it?

    Andy

    Sunday, August 10, 2008 10:29 AM

Answers

  • User533502567 posted

    I am not sure of any method or property of that type. But you can do one thing, add "flag" field to login table. and check that flag in Authenticate event.  

       protected void LoginTest_Authenticate(object sender, AuthenticateEventArgs e)
        {
            //Check the flag, if it is new user redirect to password change field
        }
     
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, August 10, 2008 11:15 AM

All replies

  • User533502567 posted

    I am not sure of any method or property of that type. But you can do one thing, add "flag" field to login table. and check that flag in Authenticate event.  

       protected void LoginTest_Authenticate(object sender, AuthenticateEventArgs e)
        {
            //Check the flag, if it is new user redirect to password change field
        }
     
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, August 10, 2008 11:15 AM
  • User1291671979 posted

     After some fiddling about, that worked for me. Thanks very much.

    Monday, August 11, 2008 1:24 PM