diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b251a24 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,8 @@ +CHANGELOG +========= + + +2.0.0 - 2016-09-04 +------------------ + +- Initial release. diff --git a/README.md b/README.md index 92b7c1a..fc7a1f0 100644 --- a/README.md +++ b/README.md @@ -16,13 +16,13 @@ The preferred way to install this extension is through [composer](http://getcomp Either run ```shell -php composer.phar require rob006/yii2-simple-auth "*" +php composer.phar require rob006/yii2-simple-auth ``` or add ```json -"rob006/yii2-simple-auth": "*" +"rob006/yii2-simple-auth": "^1.0" ``` to the require section of your `composer.json` file. diff --git a/src/ActionFilter.php b/src/ActionFilter.php index 2535ed1..d4c4956 100644 --- a/src/ActionFilter.php +++ b/src/ActionFilter.php @@ -18,6 +18,7 @@ * Action filter for validating simple auth token. * * @author Robert Korulczyk + * @since 1.0.0 */ class ActionFilter extends \yii\base\ActionFilter { @@ -164,7 +165,7 @@ protected function validate($token, $url) { /** * Check if given timestamp has not expired. - * + * * @param int $timestamp * @return bool True if timestamp has not expired, false otherwise. */ diff --git a/src/Authenticator.php b/src/Authenticator.php index fe06202..df99602 100644 --- a/src/Authenticator.php +++ b/src/Authenticator.php @@ -15,6 +15,7 @@ * Helper class for authentication requests. * * @author Robert Korulczyk + * @since 1.0.0 */ abstract class Authenticator { diff --git a/src/Token.php b/src/Token.php index a67785b..bf1b7c5 100644 --- a/src/Token.php +++ b/src/Token.php @@ -18,12 +18,13 @@ * Helper class for generate auth tokens. * * @author Robert Korulczyk + * @since 1.0.0 */ class Token { /** * Name of hashing algorithm used for generate token. - * + * * @var string * @see https://secure.php.net/manual/en/function.hash.php */ @@ -66,7 +67,7 @@ public static function validate($token, $url, $time, $secret = null) { /** * Validate secret key. If $secret is empty, Yii::$app->params['simpleauth']['secret'] is used. - * + * * @param string|null $secret * @return string * @throws InvalidParamException