Compare commits

...

9 Commits

Author SHA1 Message Date
Rob Janssen a77e7d8223 Update README.md 2017-11-06 18:55:56 +01:00
RobThree 673223a2fc * Upped version 2017-11-06 18:54:34 +01:00
RobThree d450ba432d * Attempt 2 to fix Travis 2017-11-06 18:50:34 +01:00
RobThree d22329375f * Attempt to fix Travis build 2017-11-06 18:48:32 +01:00
RobThree b1ecc9afbc * Fix some caching issues 2017-11-06 18:37:49 +01:00
Rob Janssen c9bfe0519a Undo previous commit 2017-02-18 15:43:20 +01:00
Rob Janssen 404f147aa7 Add PHP 7.1 and nightly 2017-02-18 15:37:04 +01:00
Rob Janssen 18888f83ee Delete applicationhost.config 2017-02-17 18:00:58 +01:00
RobThree 3d04717346 * Add .vs folder to .gitignore 2017-02-17 18:00:19 +01:00
7 changed files with 19 additions and 1039 deletions
+4 -1
View File
@@ -183,4 +183,7 @@ UpgradeLog*.htm
FakesAssemblies/
# Composer
/vendor
/vendor
# .vs
.vs/
+10 -3
View File
@@ -1,11 +1,18 @@
language: php
dist: trusty
matrix:
include:
- php: 5.3
dist: precise
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7
- 7.0
- 7.1
- hhvm
script: phpunit --coverage-text tests
script:
- if [[ "$TRAVIS_PHP_VERSION" == '5.6' ]]; then phpunit --coverage-text tests ; fi
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -10,7 +10,7 @@ PHP library for [two-factor (or multi-factor) authentication](http://en.wikipedi
## Requirements
* Tested on PHP 5.3, 5.4, 5.5 and 5.6, 7 and HHVM
* Tested on PHP 5.3, 5.4, 5.5 and 5.6, 7.0, 7.1 and HHVM
* [cURL](http://php.net/manual/en/book.curl.php) when using the provided `GoogleQRCodeProvider` (default), `QRServerProvider` or `QRicketProvider` but you can also provide your own QR-code provider.
* [random_bytes()](http://php.net/manual/en/function.random-bytes.php), [MCrypt](http://php.net/manual/en/book.mcrypt.php), [OpenSSL](http://php.net/manual/en/book.openssl.php) or [Hash](http://php.net/manual/en/book.hash.php) depending on which built-in RNG you use (TwoFactorAuth will try to 'autodetect' and use the best available); however: feel free to provide your own (CS)RNG.
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "robthree/twofactorauth",
"description": "Two Factor Authentication",
"version": "1.6",
"version": "1.6.1",
"type": "library",
"keywords": [ "Authentication", "Two Factor Authentication", "Multi Factor Authentication", "TFA", "MFA", "PHP", "Authenticator", "Authy" ],
"homepage": "https://github.com/RobThree/TwoFactorAuth",
@@ -6,7 +6,7 @@ class ConvertUnixTimeDotComTimeProvider implements ITimeProvider
{
public function getTime() {
$json = @json_decode(
@file_get_contents('http://www.convert-unix-time.com/api?timestamp=now')
@file_get_contents('http://www.convert-unix-time.com/api?timestamp=now&r=' . uniqid(null, true))
);
if ($json === null || !is_int($json->timestamp))
throw new \TimeException('Unable to retrieve time from convert-unix-time.com');
+2 -1
View File
@@ -26,7 +26,8 @@ class HttpTimeProvider implements ITimeProvider
'request_fulluri' => true,
'header' => array(
'Connection: close',
'User-agent: TwoFactorAuth HttpTimeProvider (https://github.com/RobThree/TwoFactorAuth)'
'User-agent: TwoFactorAuth HttpTimeProvider (https://github.com/RobThree/TwoFactorAuth)',
'Cache-Control: no-cache'
)
)
);