Skip to content

Commit

Permalink
Release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rob006 committed Sep 4, 2016
1 parent dd5d52f commit aeed009
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
CHANGELOG
=========


2.0.0 - 2016-09-04
------------------

- Initial release.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion src/ActionFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Action filter for validating simple auth token.
*
* @author Robert Korulczyk <robert@korulczyk.pl>
* @since 1.0.0
*/
class ActionFilter extends \yii\base\ActionFilter {

Expand Down Expand Up @@ -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.
*/
Expand Down
1 change: 1 addition & 0 deletions src/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Helper class for authentication requests.
*
* @author Robert Korulczyk <robert@korulczyk.pl>
* @since 1.0.0
*/
abstract class Authenticator {

Expand Down
5 changes: 3 additions & 2 deletions src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
* Helper class for generate auth tokens.
*
* @author Robert Korulczyk <robert@korulczyk.pl>
* @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
*/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit aeed009

Please sign in to comment.