Skip to content

Commit

Permalink
optin verification
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Sep 26, 2018
1 parent 00e6ac0 commit 5fd4b89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Hashing/ArgonHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ArgonHasher extends AbstractHasher implements HasherContract
*
* @var bool
*/
protected $verifyAlgorithm = true;
protected $verifyAlgorithm = false;

/**
* Create a new hasher instance.
Expand All @@ -46,7 +46,7 @@ public function __construct(array $options = [])
$this->time = $options['time'] ?? $this->time;
$this->memory = $options['memory'] ?? $this->memory;
$this->threads = $options['threads'] ?? $this->threads;
$this->verifyAlgorithm = $options['verifyAlgorithm'] ?? $this->verifyAlgorithm;
$this->verifyAlgorithm = $options['verify'] ?? $this->verifyAlgorithm;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Hashing/BcryptHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BcryptHasher extends AbstractHasher implements HasherContract
*
* @var bool
*/
protected $verifyAlgorithm = true;
protected $verifyAlgorithm = false;

/**
* Create a new hasher instance.
Expand All @@ -30,7 +30,7 @@ class BcryptHasher extends AbstractHasher implements HasherContract
public function __construct(array $options = [])
{
$this->rounds = $options['rounds'] ?? $this->rounds;
$this->verifyAlgorithm = $options['verify_algorithm'] ?? $this->verifyAlgorithm;
$this->verifyAlgorithm = $options['verify'] ?? $this->verifyAlgorithm;
}

/**
Expand Down

0 comments on commit 5fd4b89

Please sign in to comment.