summaryrefslogtreecommitdiffstats
path: root/TwoStepsAuthenticator.TestApp/ViewModel.cs
diff options
context:
space:
mode:
authorGuillaume Lacasa <guillaume.lacasa@ucaya.com>2013-12-06 15:32:54 +0100
committerGuillaume Lacasa <guillaume.lacasa@ucaya.com>2013-12-06 15:32:54 +0100
commit50beaba8291c1e777d5a63bb19400a260712f837 (patch)
tree46b14ab6b93d813e9f40aae760f4b3902e380800 /TwoStepsAuthenticator.TestApp/ViewModel.cs
parent33c70541ca1e0ea27ac6a9ba5bbee799f03f9de8 (diff)
parent41cb13ee263104981850a73d4abf4a583df31941 (diff)
downloadTwoStepsAuthenticator-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.cs6
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);