Changeset 7692
- Timestamp:
- 04/02/12 20:07:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/ChangePasswordDialog.cs
r7612 r7692 22 22 using System; 23 23 using System.Windows.Forms; 24 using HeuristicLab.Clients.Common; 24 25 using CcSettings = HeuristicLab.Clients.Common.Properties; 25 26 … … 62 63 CcSettings.Settings.Default.Password = string.Empty; 63 64 CcSettings.Settings.Default.Save(); 64 CcSettings.Settings.Default.Password = oldPasswordTextBox.Text;65 CcSettings.Settings.Default.Password = CryptoService.EncryptString(oldPasswordTextBox.Text); 65 66 if (savePasswordCheckBox.Checked) 66 67 CcSettings.Settings.Default.Save(); … … 68 69 69 70 private void SaveNewUserPasswordConfig() { 70 CcSettings.Settings.Default.Password = newPasswordTextBox.Text;71 CcSettings.Settings.Default.Password = CryptoService.EncryptString(newPasswordTextBox.Text); 71 72 if (savePasswordCheckBox.Checked) 72 73 CcSettings.Settings.Default.Save(); … … 85 86 private void ChangePasswordDialog_Load(object sender, EventArgs e) { 86 87 userNameTextBox.Text = CcSettings.Settings.Default.UserName; 87 oldPasswordTextBox.Text = C cSettings.Settings.Default.Password;88 oldPasswordTextBox.Text = CryptoService.DecryptString(CcSettings.Settings.Default.Password); 88 89 savePasswordCheckBox.Checked = CcSettings.Settings.Default.SavePassword; 89 90 }
Note: See TracChangeset
for help on using the changeset viewer.