Ejemplo n.º 1
0
 void _ctlChangePassword_ChangedPassword(object sender, EventArgs e)
 {
     //Need to remove authentication cookie created by ChangePassword control.
     FormsAuthentication.SignOut();
     if (_ctlChangePassword.UserName == Utils.GetCurrentUsername())
     {
         Microsoft.SharePoint.IdentityModel.SPClaimsUtility.AuthenticateFormsUser(new Uri(SPContext.Current.Web.Url), _ctlChangePassword.UserName, _ctlChangePassword.NewPassword);
     }
 }
Ejemplo n.º 2
0
 void _ctlChangePassword_Load(object sender, EventArgs e)
 {
     _ctlChangePassword.UserName = Utils.GetCurrentUsername();
 }