Skip to content

Commit

Permalink
bump laravel versions to 5.5 and 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
ksungcaya committed Aug 16, 2018
1 parent c0a3852 commit cc5ae03
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,22 @@
"phpspec/phpspec": "~2.0"
},
"require": {
"php": ">=5.4.0|>=5.6.0",
"illuminate/contracts": "5.0.x|5.1.x|5.2.x|5.3.x|5.4.x",
"illuminate/support": "5.0.x|5.1.x|5.2.x|5.3.x|5.4.x",
"php": ">=5.4.0",
"illuminate/contracts": "5.0.x|5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x",
"illuminate/support": "5.0.x|5.1.x|5.2.x|5.3.x|5.4.x|5.5.x|5.6.x",
"hautelook/phpass": "*"
},
"autoload": {
"psr-4": {
"Sungcaya\\Phpass\\": "src/Sungcaya/Phpass"
}
},
"minimum-stability" : "dev"
"minimum-stability" : "stable",
"extra": {
"laravel": {
"providers": [
"Sungcaya\\Phpass\\PhpassHashServiceProvider"
]
}
}
}
15 changes: 12 additions & 3 deletions src/Sungcaya/Phpass/PhpassHasher.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php namespace Sungcaya\Phpass;

use RuntimeException;
use Hautelook\Phpass\PasswordHash;
use Illuminate\Contracts\Hashing\Hasher as HasherContract;

Expand All @@ -10,7 +9,7 @@ class PhpassHasher implements HasherContract
* @var PasswordHash
*/
protected $hasher;

/**
* Create PhpassHasher instance.
*
Expand All @@ -21,6 +20,17 @@ public function __construct(PasswordHash $hasher)
$this->hasher = $hasher;
}

/**
* Get information about the given hashed value.
*
* @param string $hashedValue
* @return array
*/
public function info($hashedValue)
{
return password_get_info($hashedValue);
}

/**
* Hash the given value.
*
Expand Down Expand Up @@ -63,5 +73,4 @@ public function needsRehash($hashedValue, array $options = [])
{
return false;
}

}

0 comments on commit cc5ae03

Please sign in to comment.