admin 403forbidden error

when i login i have 403 forbbiden erorr in /admin route why? in production
12 Replies
gigiloouu
gigiloouuOP12mo ago
i do it already but when i try to login in now its have validation error that These credentials do not match our records. but at last it is in db like my user email and password
Vp
Vp12mo ago
Can you share your canAccessPanel() code?
gigiloouu
gigiloouuOP12mo ago
No description
Vp
Vp12mo ago
Can you check whether your admin user has email ending "@onedq.com" and "verified"?
gigiloouu
gigiloouuOP12mo ago
User::create([
'name' => 'onedq',
'email' => '[email protected]',
'password' => Hash::make('ishguram3'),
]);
User::create([
'name' => 'onedq',
'email' => '[email protected]',
'password' => Hash::make('ishguram3'),
]);
what means verifed? how i can check it 💀
Vp
Vp12mo ago
email_verified_at should not be null.. if you provide $this->hasVerifiedEmail()
No description
gigiloouu
gigiloouuOP12mo ago
hm i have not email_verifed_at in my table can i remove hasVerifiedEmaiL?
Vp
Vp12mo ago
Then remove this && $this->hasVerifiedEmail()
gigiloouu
gigiloouuOP12mo ago
yep thats works now thanks ❤️
Vp
Vp12mo ago
welcome
gigiloouu
gigiloouuOP12mo ago
can u help me i have 1 problem again d in local this user is super admin but in production it has no any thing like its cant view anything btw i test it now and it has not super admin hm

Did you find this page helpful?