public void EditPassword(String oldPassword, String newPassword)
 {
     try
     {
         Person person = CurrentManager.GetPerson(View.LoggedUserId);
         if (InternalService.EditPassword(person, oldPassword, newPassword, true))
         {
             if (person.AcceptPolicy || !PolicyService.UserHasPolicyToAccept(person))
             {
                 View.LogonUser(person, InternalService.GetDefaultLogonCommunity(person), View.LoggedProviderId, RootObject.InternalLogin(false), true, CurrentManager.GetUserDefaultIdOrganization(person.Id));
             }
             else
             {
                 View.DisplayPrivacyPolicy(person.Id, View.LoggedProviderId, RootObject.InternalLogin(false), true);
             }
         }
         else
         {
             View.DisplayPasswordNotChanged();
         }
     }
     catch (lm.Comol.Core.Authentication.SamePasswordException ex)
     {
         View.DisplaySamePasswordException();
     }
     catch (lm.Comol.Core.Authentication.InvalidPasswordException ex)
     {
         View.DisplayInvalidPassword();
     }
     catch (Exception ex)
     {
         View.DisplayPasswordNotChanged();
     }
 }