Expanded test coverage.

This commit is contained in:
James Cole
2017-03-25 13:41:17 +01:00
parent 1fb0a64f31
commit 5770edcde2
26 changed files with 520 additions and 109 deletions

View File

@@ -29,7 +29,6 @@ use Google2FA;
use Illuminate\Contracts\Encryption\DecryptException;
use Illuminate\Contracts\Translation\Translator;
use Illuminate\Validation\Validator;
use Session;
/**
* Class FireflyValidator
@@ -66,7 +65,7 @@ class FireflyValidator extends Validator
return false;
}
$secret = Session::get('two-factor-secret');
$secret = session('two-factor-secret');
return Google2FA::verifyKey($secret, $value);
}