Skip to content

Commit

Permalink
Hash::check() checks algorithm now
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrissi2812 committed Sep 13, 2018
1 parent 289c1e9 commit 6e02201
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hashing.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ The `check` method allows you to verify that a given plain-text string correspon
// The passwords match...
}

> {note} The supplied `$hashedPassword` has to match the algorithm you have configured.
#### Checking If A Password Needs To Be Rehashed

The `needsRehash` function allows you to determine if the work factor used by the hasher has changed since the password was hashed:
Expand Down
8 changes: 8 additions & 0 deletions upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ Finally, when calling the `Auth::routes` method, you should pass the `verify` op

The `readStream` and `writeStream` methods [have been added to the `Illuminate\Contracts\Filesystem\Filesystem` contract](https://github.com/laravel/framework/pull/23755). If you are implementing this interface, you should add these methods to your implementation.

### Hashing

#### `Hash:check` Method

**Likelihood Of Impact: Medium**

The `check` method now checks if the algorithm of the hash matches the configured algorithm.

### Mail

#### Mailable Dynamic Variable Casing
Expand Down

0 comments on commit 6e02201

Please sign in to comment.