protected void UpdateAccount(ExternalLoginInfo account, Person person, Person currentUser, AuthenticationProvider provider, dtoExternalCredentials credentials)
        {
            account.UpdateMetaInfo((currentUser == null) ? person : currentUser, UC.IpAddress, UC.ProxyIpAddress);

            if (lm.Comol.Core.DomainModel.PermissionHelper.CheckPermissionSoft((long)provider.IdentifierFields, (long)IdentifierField.longField))
            {
                account.IdExternalLong = credentials.IdentifierLong;
            }
            if (lm.Comol.Core.DomainModel.PermissionHelper.CheckPermissionSoft((long)provider.IdentifierFields, (long)IdentifierField.stringField))
            {
                account.IdExternalString = credentials.IdentifierString;
            }
            account.isEnabled = !person.isDisabled;
            account.Deleted   = BaseStatusDeleted.None;
        }