You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a custom $connection on a User class that extends the default Authenticatable things works nicely for Login + Logout + VerifyEmail without any changes anywhere.
The thing is if we requests a password reset, it seems that the controller ignores the $connection parameter even though all the others work fine.
I understand that this probably can be solved by creating a database provider and pass this new provider to passwords.users.provider but since everything else works like a charm, maybe it would be interesting to fix this on the PasswordResetLink too
Steps To Reproduce
Use a postgres database with 2 schemas, the first schema will be used for data, the second schema for auth related things.
Configure a new connection with the second search_path an example:
Try to register, signin, signout, verify email, request a reset link. You will see everything will work with the exception of the reset link which seems to keep querying the default public schema. Resulting in the following error:
Illuminate\Database\QueryException
SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "users" does not exist LINE 1: select * from "users" where "email" = $1 limit 1 ^ (Connection: pgsql, SQL: select * from "users" where "email" = leonardo@custodio.me limit 1)
The text was updated successfully, but these errors were encountered:
We'll need more info and/or code to debug this further. Can you please create a repository with the command below, commit the code that reproduces the issue as one separate commit on the main/master branch and share the repository here?
Laravel Version
12.14.1
PHP Version
8.3.20
Database Driver & Version
Postgres
Description
Hello guys,
When using a custom
$connection
on aUser
class that extends the defaultAuthenticatable
things works nicely for Login + Logout + VerifyEmail without any changes anywhere.The thing is if we requests a password reset, it seems that the controller ignores the
$connection
parameter even though all the others work fine.My default configuration file for
auth.php
is:I understand that this probably can be solved by creating a database
provider
and pass this new provider topasswords.users.provider
but since everything else works like a charm, maybe it would be interesting to fix this on the PasswordResetLink tooSteps To Reproduce
Use a postgres database with 2 schemas, the first schema will be used for data, the second schema for auth related things.
Configure a new connection with the second
search_path
an example:The text was updated successfully, but these errors were encountered: