Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Feb 26, 2025
1 parent da24318 commit dccacbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 111 deletions.
98 changes: 0 additions & 98 deletions src/Auth/Passwords/LaravelTwelveTokenRepository.php

This file was deleted.

15 changes: 2 additions & 13 deletions src/Auth/Passwords/PasswordBrokerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,12 @@ protected function createTokenRepository(array $config)
$key = base64_decode(substr($key, 7));
}

if (version_compare(app()->version(), '12', '<')) {
return new TokenRepository(
$this->app['files'],
$this->app['hash'],
$config['table'],
$key,
$config['expire'],
$config['throttle'] ?? 0
);
}

return new LaravelTwelveTokenRepository(
return new TokenRepository(
$this->app['files'],
$this->app['hash'],
$config['table'],
$key,
($config['expire'] ?? 60) * 60,
$config['expire'],
$config['throttle'] ?? 0
);
}
Expand Down

0 comments on commit dccacbe

Please sign in to comment.