-
Notifications
You must be signed in to change notification settings - Fork 902
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
[Bug] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_db.password_resets' doesn't exist (Connection: mysql, SQL: select * from password_resets
where email
= myemail limit 1)
#4979
Comments
Hello there! Thanks for opening your first issue on this repo! Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that. Backpack communication channels:
Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch. Thank you! -- |
Hi @TheClaud99, I can confirm this is an issue in new Laravel 10 installations 👌 I'm working on a fix for this one 🙌 |
@TheClaud99 thank you for your report, we have a fix now 🎉 I've just opened a new PR to fix this issue; #4986 We may move the conversation about this issue to the PR thread, if you test it please let us know if it fixes your issue 🙌 |
This bug has been "closed" in March, since then, you've published seven new Backpack 5.x versions, yet the password reset feature on Laravel 10 is still unsupported. This bug was marked as DONE on the project board too. Please move it back to the IN PROGRESS state. (Update: I've checked and I see that the pull request itself is in the IN PROGRESS tab.) |
Indeed @cubilog it's in progress and we are discussing a possible breaking change and or a documentation solution to fix the issue. The current proposed solution is a workaround only. It introduces other possible problems and I am not totally comfortable with it. I am on support this week, I am going to have another look at it. Thanks for the heads up. 🙏 Cheers |
rename 'password_resets' to 'password_reset_tokens' |
Yes, in /*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| You may specify multiple password reset configurations if you have more
| than one user table or model in the application and you want to have
| separate password reset settings based on the specific user types.
|
| The expire time is the number of minutes that each reset token will be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => 'password_reset_tokens',
'expire' => 60,
'throttle' => 60,
],
], |
Bug report
What I did
I tried to use the forgot password on the admin panel login and i got this error becouse the password_resets table doesn't exists anymore on laravel 10
What I expected to happen
Send reset password email
What happened
Got this error
What I've already tried to fix it
I think the bug is in BackpackServiceProvider.php in this line with wrong table name. 'password_resets' shuold be changed in 'password_reset_tokens'
Is it a bug in the latest version of Backpack?
Yes
Backpack, Laravel, PHP, DB version
When I run
php artisan backpack:version
the output is:The text was updated successfully, but these errors were encountered: