diff options
author | Guillaume Lacasa <guillaume.lacasa@ucaya.com> | 2013-12-06 15:32:54 +0100 |
---|---|---|
committer | Guillaume Lacasa <guillaume.lacasa@ucaya.com> | 2013-12-06 15:32:54 +0100 |
commit | 50beaba8291c1e777d5a63bb19400a260712f837 (patch) | |
tree | 46b14ab6b93d813e9f40aae760f4b3902e380800 /TwoStepsAuthenticator.TestApp/ViewModel.cs | |
parent | 33c70541ca1e0ea27ac6a9ba5bbee799f03f9de8 (diff) | |
parent | 41cb13ee263104981850a73d4abf4a583df31941 (diff) | |
download | TwoStepsAuthenticator-50beaba8291c1e777d5a63bb19400a260712f837.zip TwoStepsAuthenticator-50beaba8291c1e777d5a63bb19400a260712f837.tar.gz TwoStepsAuthenticator-50beaba8291c1e777d5a63bb19400a260712f837.tar.bz2 |
Merge branch 'master' of https://github.com/dusk0r/TwoStepsAuthenticator
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); |