Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/02/12 20:07:23 (13 years ago)
Author:
ascheibe
Message:

#1648 adapted to changes of r7690

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/ChangePasswordDialog.cs

    r7612 r7692  
    2222using System;
    2323using System.Windows.Forms;
     24using HeuristicLab.Clients.Common;
    2425using CcSettings = HeuristicLab.Clients.Common.Properties;
    2526
     
    6263      CcSettings.Settings.Default.Password = string.Empty;
    6364      CcSettings.Settings.Default.Save();
    64       CcSettings.Settings.Default.Password = oldPasswordTextBox.Text;
     65      CcSettings.Settings.Default.Password = CryptoService.EncryptString(oldPasswordTextBox.Text);
    6566      if (savePasswordCheckBox.Checked)
    6667        CcSettings.Settings.Default.Save();
     
    6869
    6970    private void SaveNewUserPasswordConfig() {
    70       CcSettings.Settings.Default.Password = newPasswordTextBox.Text;
     71      CcSettings.Settings.Default.Password = CryptoService.EncryptString(newPasswordTextBox.Text);
    7172      if (savePasswordCheckBox.Checked)
    7273        CcSettings.Settings.Default.Save();
     
    8586    private void ChangePasswordDialog_Load(object sender, EventArgs e) {
    8687      userNameTextBox.Text = CcSettings.Settings.Default.UserName;
    87       oldPasswordTextBox.Text = CcSettings.Settings.Default.Password;
     88      oldPasswordTextBox.Text = CryptoService.DecryptString(CcSettings.Settings.Default.Password);
    8889      savePasswordCheckBox.Checked = CcSettings.Settings.Default.SavePassword;
    8990    }
Note: See TracChangeset for help on using the changeset viewer.