diff options
author | Christoph Enzmann <christoph.enzmann@confer.ch> | 2013-12-05 11:19:11 +0100 |
---|---|---|
committer | Christoph Enzmann <christoph.enzmann@confer.ch> | 2013-12-05 11:19:11 +0100 |
commit | b52682a9b3216a7d966238e3c8ed6b4da3920313 (patch) | |
tree | 9cd5e32a7dd65b1297dfe9655173f3a0c512be05 /TwoStepsAuthenticator.TestApp/ViewModel.cs | |
parent | 99c53801f3d4269b8058e87fa48b4bc37c7533fd (diff) | |
download | TwoStepsAuthenticator-b52682a9b3216a7d966238e3c8ed6b4da3920313.zip TwoStepsAuthenticator-b52682a9b3216a7d966238e3c8ed6b4da3920313.tar.gz TwoStepsAuthenticator-b52682a9b3216a7d966238e3c8ed6b4da3920313.tar.bz2 |
Counter based OTP added, removed UsedCodesManager from authenticator, UsedCodesManager refactoring
Diffstat (limited to 'TwoStepsAuthenticator.TestApp/ViewModel.cs')
-rw-r--r-- | TwoStepsAuthenticator.TestApp/ViewModel.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TwoStepsAuthenticator.TestApp/ViewModel.cs b/TwoStepsAuthenticator.TestApp/ViewModel.cs index 8bfeb9b..5a2e7b6 100644 --- a/TwoStepsAuthenticator.TestApp/ViewModel.cs +++ b/TwoStepsAuthenticator.TestApp/ViewModel.cs @@ -72,7 +72,7 @@ namespace TwoStepsAuthenticatorTestApp public ViewModel() { - var authenticator = new TwoStepsAuthenticator.Authenticator(); + var authenticator = new TwoStepsAuthenticator.TimeAuthenticator(); this.Key = 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); |