Skip to content

Commit e3e6a97

Browse files
authored
Add Forgetable and Uniqueness of OTP (#66)
* Add Forgetable and Uniqueness of OTP * Apply StyleCI Fixes * Test fixes
1 parent 18db076 commit e3e6a97

14 files changed

+742
-849
lines changed

.github/workflows/php.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/cache@v2
2323
with:
2424
path: vendor
25-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
25+
key: ${{ runner.os }}-php-${{ hashFiles('./composer.lock') }}
2626
restore-keys: |
2727
${{ runner.os }}-php-
2828

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ Temporary Items
5151

5252
# Vendor directory
5353
vendor/
54-
.phpunit.result.cache
54+
.phpunit.result.cache
55+
tests/phpunit-cache

changelog.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to `otp` will be documented in this file.
44

5+
## Version 4.0
6+
7+
### Added
8+
- Unique OTP on each generation
9+
- Forget OTP on demand
10+
- New `otp()` helper function
11+
512
## Version 3.0
613

714
### Added

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
"autoload": {
2424
"psr-4": {
2525
"Tzsk\\Otp\\": "src/"
26-
}
26+
},
27+
"files": [
28+
"src/helper.php"
29+
]
2730
},
2831
"autoload-dev": {
2932
"psr-4": {

0 commit comments

Comments
 (0)