mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Cleanup frontend to only pass the required description field
This commit is contained in:
@@ -35,8 +35,8 @@ trait HasAccessTokens
|
||||
$token = $this->tokens()->create([
|
||||
'user_id' => $this->id,
|
||||
'description' => $description,
|
||||
'token' => hash('sha256', $plain = Str::random(36)),
|
||||
'token_id' => 'ptdl_' . Str::random(11),
|
||||
'token' => hash('sha256', $plain = Str::random(PersonalAccessToken::TOKEN_LENGTH)),
|
||||
'token_id' => PersonalAccessToken::generateTokenIdentifier(),
|
||||
'abilities' => $abilities,
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user