mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-03 18:30:47 +00:00
Update ApiV1Dot1Controller
This commit is contained in:
parent
3ebae614ce
commit
0ce484c56f
1 changed files with 2 additions and 1 deletions
|
@ -539,6 +539,7 @@ class ApiV1Dot1Controller extends Controller
|
|||
|
||||
$user = User::findOrFail($verify->user_id);
|
||||
$user->email_verified_at = now();
|
||||
$user->last_active_at = now();
|
||||
$user->save();
|
||||
|
||||
$verify->delete();
|
||||
|
@ -546,7 +547,7 @@ class ApiV1Dot1Controller extends Controller
|
|||
$token = $user->createToken('Pixelfed');
|
||||
|
||||
return response()->json([
|
||||
'access_token' => $token->access_token
|
||||
'access_token' => $token->accessToken
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue