Ensure a created_at value is set on recovery tokens; closes #3163
This commit is contained in:
parent
983a337fd4
commit
8c7d785c9e
4 changed files with 17 additions and 3 deletions
|
@ -101,6 +101,11 @@ class TwoFactorControllerTest extends ClientApiIntegrationTestCase
|
|||
$tokens = RecoveryToken::query()->where('user_id', $user->id)->get();
|
||||
$this->assertCount(10, $tokens);
|
||||
$this->assertStringStartsWith('$2y$10$', $tokens[0]->token);
|
||||
// Ensure the recovery tokens that were created include a "created_at" timestamp
|
||||
// value on them.
|
||||
//
|
||||
// @see https://github.com/pterodactyl/panel/issues/3163
|
||||
$this->assertNotNull($tokens[0]->created_at);
|
||||
|
||||
$tokens = $tokens->pluck('token')->toArray();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue