We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2095048 commit cb76758Copy full SHA for cb76758
src/Illuminate/Auth/Passwords/PasswordBrokerManager.php
@@ -4,6 +4,7 @@
4
5
use InvalidArgumentException;
6
use Illuminate\Contracts\Auth\PasswordBrokerFactory as FactoryContract;
7
+use Illuminate\Support\Str;
8
9
class PasswordBrokerManager implements FactoryContract
10
{
@@ -82,10 +83,15 @@ protected function resolve($name)
82
83
*/
84
protected function createTokenRepository(array $config)
85
86
+ $hashKey = $this->app['config']['app.key'];
87
+ if (Str::startsWith($hashKey, 'base64:')) {
88
+ $hashKey = base64_decode(substr($hashKey, 7));
89
+ }
90
+
91
return new DatabaseTokenRepository(
92
$this->app['db']->connection(),
93
$config['table'],
- $this->app['config']['app.key'],
94
+ $hashKey,
95
$config['expire']
96
);
97
}
0 commit comments