Cleanup frontend to only pass the required description field
This commit is contained in:
parent
374910d73a
commit
dfff8ad667
4 changed files with 30 additions and 27 deletions
|
@ -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,
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue