@@ 53-62 (lines=10) @@ | ||
50 | /** |
|
51 | * {@inheritdoc} |
|
52 | */ |
|
53 | public function needsRehash($hash) { |
|
54 | list($stored_hash, $stored_salt) = $this->splitHash($hash); |
|
55 | ||
56 | // Unsalted hashes should be rehashed. |
|
57 | if ($stored_hash === false || $stored_salt === false) { |
|
58 | return true; |
|
59 | } |
|
60 | ||
61 | return false; |
|
62 | } |
|
63 | ||
64 | /** |
|
65 | * {@inheritdoc} |
@@ 69-78 (lines=10) @@ | ||
66 | /** |
|
67 | * {@inheritdoc} |
|
68 | */ |
|
69 | public function needsRehash($hash) { |
|
70 | list($stored_hash, $stored_salt) = $this->splitHash($hash); |
|
71 | ||
72 | // Unsalted hashes should be rehashed. |
|
73 | if ($stored_hash === false || $stored_salt === false) { |
|
74 | return true; |
|
75 | } |
|
76 | ||
77 | return false; |
|
78 | } |
|
79 | ||
80 | /** |
|
81 | * {@inheritdoc} |