title: Programmatically login in dotnetnuke
body: <p>hey guys,
  i am using dotnetnuke as my CMS, for some reason i want to manually login user into the site, i am able to login but the problem is, even if i enter the invalid password, still dotnetnuke log me in. i am using below code.</p>
  
  <pre><code>UserInfo objUser = new UserInfo();
  
  objUser.Username = Login1.UserName;
  UserMembership objMembership = new UserMembership(objUser);
  objMembership.Username = Login1.UserName;
  objMembership.Password = Login1.Password;
  objUser.Membership = objMembership;
  
  //UserCreateStatus result = UserController.CreateUser(ref objUser);                
  UserController.UserLogin(0, objUser, Request.ServerVariables["SERVER_NAME"], this.Request.UserHostAddress, true);
  </code></pre>