diff options
Diffstat (limited to 'TwoStepsAuthenticator.TestApp/ViewModel.cs')
-rw-r--r-- | TwoStepsAuthenticator.TestApp/ViewModel.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TwoStepsAuthenticator.TestApp/ViewModel.cs b/TwoStepsAuthenticator.TestApp/ViewModel.cs index 8bfeb9b..adc07a4 100644 --- a/TwoStepsAuthenticator.TestApp/ViewModel.cs +++ b/TwoStepsAuthenticator.TestApp/ViewModel.cs @@ -72,8 +72,8 @@ namespace TwoStepsAuthenticatorTestApp public ViewModel() { - var authenticator = new TwoStepsAuthenticator.Authenticator(); - this.Key = authenticator.GenerateKey(); + var authenticator = new TwoStepsAuthenticator.TimeAuthenticator(); + this.Key = TwoStepsAuthenticator.Authenticator.GenerateKey(); timer = new DispatcherTimer(TimeSpan.FromSeconds(1), DispatcherPriority.Normal, timerCallback, App.Current.Dispatcher); timer.Start(); } @@ -95,7 +95,7 @@ namespace TwoStepsAuthenticatorTestApp internal void GetCode() { - var auth = new TwoStepsAuthenticator.Authenticator(); + var auth = new TwoStepsAuthenticator.TimeAuthenticator(); Code = auth.GetCode(this.Key); auth.CheckCode(key, Code); |