Skip to content

Commit aeed009

Browse files
committed
Release 1.0.0
1 parent dd5d52f commit aeed009

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CHANGELOG
2+
=========
3+
4+
5+
2.0.0 - 2016-09-04
6+
------------------
7+
8+
- Initial release.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ The preferred way to install this extension is through [composer](http://getcomp
1616
Either run
1717

1818
```shell
19-
php composer.phar require rob006/yii2-simple-auth "*"
19+
php composer.phar require rob006/yii2-simple-auth
2020
```
2121

2222
or add
2323

2424
```json
25-
"rob006/yii2-simple-auth": "*"
25+
"rob006/yii2-simple-auth": "^1.0"
2626
```
2727

2828
to the require section of your `composer.json` file.

src/ActionFilter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* Action filter for validating simple auth token.
1919
*
2020
* @author Robert Korulczyk <[email protected]>
21+
* @since 1.0.0
2122
*/
2223
class ActionFilter extends \yii\base\ActionFilter {
2324

@@ -164,7 +165,7 @@ protected function validate($token, $url) {
164165

165166
/**
166167
* Check if given timestamp has not expired.
167-
*
168+
*
168169
* @param int $timestamp
169170
* @return bool True if timestamp has not expired, false otherwise.
170171
*/

src/Authenticator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* Helper class for authentication requests.
1616
*
1717
* @author Robert Korulczyk <[email protected]>
18+
* @since 1.0.0
1819
*/
1920
abstract class Authenticator {
2021

src/Token.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
* Helper class for generate auth tokens.
1919
*
2020
* @author Robert Korulczyk <[email protected]>
21+
* @since 1.0.0
2122
*/
2223
class Token {
2324

2425
/**
2526
* Name of hashing algorithm used for generate token.
26-
*
27+
*
2728
* @var string
2829
* @see https://secure.php.net/manual/en/function.hash.php
2930
*/
@@ -66,7 +67,7 @@ public static function validate($token, $url, $time, $secret = null) {
6667

6768
/**
6869
* Validate secret key. If $secret is empty, Yii::$app->params['simpleauth']['secret'] is used.
69-
*
70+
*
7071
* @param string|null $secret
7172
* @return string
7273
* @throws InvalidParamException

0 commit comments

Comments
 (0)