Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ChangePasswordForm.xaml.cs
1using System;
2using System.Windows;
3
5{
9 public partial class ChangePasswordForm : Window
10 {
11 private string passwordHash = string.Empty;
12 private string passwordHashMethod = string.Empty;
13
14 public ChangePasswordForm()
15 {
17 }
18
22 public string PasswordHash
23 {
24 get => this.passwordHash;
25 set => this.passwordHash = value;
26 }
27
31 public string PasswordHashMethod
32 {
33 get => this.passwordHashMethod;
34 set => this.passwordHashMethod = value;
35 }
36
37 private void CancelButton_Click(object Sender, RoutedEventArgs e)
38 {
39 this.DialogResult = false;
40 }
41
42 private void ChangeButton_Click(object Sender, RoutedEventArgs e)
43 {
44 if (this.Password.Password != this.RetypePassword.Password)
45 {
46 MessageBox.Show(this, "The two passwords must match.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
47 this.Password.Focus();
48 }
49 else
50 this.DialogResult = true;
51 }
52 }
53}
Interaction logic for ChangePasswordForm.xaml
string PasswordHash
Password hash of a successfully authenticated client.
string PasswordHashMethod
Password hash method of a successfully authenticated client.