Ignore:
Timestamp:
Jan 31, 2011, 1:35:16 PM (11 years ago)
Author:
kopal
Message:

added "Remember my password" button. So the user can decide if he wants to save his password on the machine or not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypP2P/Internal/P2PBase.cs

    r2502 r2540  
    9898        }
    9999
     100        public static string Password { get; set; }
     101
    100102        #region Basic P2P Methods (Init, Start, Stop)
    101103
     
    201203                                        NotificationLevel.Info);
    202204            IsInitialized = true;
    203             Dht.Initialize(P2PSettings.Default.PeerName, DecryptString(P2PSettings.Default.Password), P2PSettings.Default.WorldName, overlay,
     205           
     206            string password = null;
     207            if(P2PSettings.Default.RememberPassword){
     208                password = DecryptString(P2PSettings.Default.Password);
     209            }else{
     210                password = DecryptString(P2PBase.Password);               
     211            }           
     212
     213            Dht.Initialize(P2PSettings.Default.PeerName, password, P2PSettings.Default.WorldName, overlay,
    204214                           bootstrapper, linkmanager, null);
    205215        }
Note: See TracChangeset for help on using the changeset viewer.