admin 403forbidden error

when i login i have 403 forbbiden erorr in /admin route why? in production
12 Replies
gigiloouu
gigiloouuOP9mo 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
Vp9mo ago
Can you share your canAccessPanel() code?
gigiloouu
gigiloouuOP9mo ago
No description
Vp
Vp9mo ago
Can you check whether your admin user has email ending "@onedq.com" and "verified"?
gigiloouu
gigiloouuOP9mo 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
Vp9mo ago
email_verified_at should not be null.. if you provide $this->hasVerifiedEmail()
No description
gigiloouu
gigiloouuOP9mo ago
hm i have not email_verifed_at in my table can i remove hasVerifiedEmaiL?
Vp
Vp9mo ago
Then remove this && $this->hasVerifiedEmail()
gigiloouu
gigiloouuOP9mo ago
yep thats works now thanks ❤️
Vp
Vp9mo ago
welcome
gigiloouu
gigiloouuOP9mo 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
Want results from more Discord servers?
Add your server