Skip to content

Commit

Permalink
feat: Associate author role with user upon registration (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentauger authored May 22, 2024
1 parent 6df2a04 commit ce2e60f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Auth/RegisteredUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public function store(Request $request): JsonResponse
}

$user->email_verification_token = User::generateEmailVerificationToken();
$user->associateAuthor();
$user->save();
$user->associateAuthor();

// give the user the author role - this is the default role
$user->assignRole('author');
Expand Down

0 comments on commit ce2e60f

Please sign in to comment.