diff options
Diffstat (limited to 'TwoStepsAuthenticator.TestApp')
-rw-r--r-- | TwoStepsAuthenticator.TestApp/MainWindow.xaml.cs | 1 | ||||
-rw-r--r-- | TwoStepsAuthenticator.TestApp/ViewModel.cs | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/TwoStepsAuthenticator.TestApp/MainWindow.xaml.cs b/TwoStepsAuthenticator.TestApp/MainWindow.xaml.cs index 43469af..f74a031 100644 --- a/TwoStepsAuthenticator.TestApp/MainWindow.xaml.cs +++ b/TwoStepsAuthenticator.TestApp/MainWindow.xaml.cs @@ -25,7 +25,6 @@ namespace TwoStepsAuthenticatorTestApp { InitializeComponent(); model = new ViewModel(); - model.Key="JBSWY3DPEHPK3PXP"; this.DataContext = model; } diff --git a/TwoStepsAuthenticator.TestApp/ViewModel.cs b/TwoStepsAuthenticator.TestApp/ViewModel.cs index 51db3a8..191569f 100644 --- a/TwoStepsAuthenticator.TestApp/ViewModel.cs +++ b/TwoStepsAuthenticator.TestApp/ViewModel.cs @@ -72,6 +72,8 @@ namespace TwoStepsAuthenticatorTestApp public ViewModel() { + var auth = new TwoStepsAuthenticator.Authenticator(); + this.Key = auth.GenerateKey(); timer = new DispatcherTimer(TimeSpan.FromSeconds(1), DispatcherPriority.Normal, timerCallback, App.Current.Dispatcher); //timer.Elapsed += timer_Elapsed; timer.Start(); |