-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 Error #12
Comments
I must also say that this same 403 error occurs when I try to login with the new registered user. I have discovered the following : |
For a new user to be able to log in to the admin panel, he must have permissions. You can add in the registration event or in any other place that suits you. |
Thank you tabuna. Can you tell me how I can automatically assign a permission in the registration event when a user registers through fortify so that he can access the control panel. Thank you very much. |
I recommend creating a user role. (In admin panel) And then add it in action public function create(array $input)
{
//...
$role = Role::firstWhere('slug', 'user');
$user->addRole($role);
return $user;
} Then you can change the rights of this group at any time. |
Hi. I have installed the package according to the instructions, and when I register a new user, the registration is successful, but instead of automatically logging into the panel, a 403 error appears, but the user is registered in the Users table. Please, could you tell me how can I fix it ? Thank you.
The text was updated successfully, but these errors were encountered: