#Unauthorized response when log in to admin.
13 messages · Page 1 of 1 (latest)
It doesn’t seem that your request is selecting the user id if you look at the from clause
@lilac spoke Yes, this is understandable, I'm just new to Medusa and don’t understand where I can find it, check the login function.
I am not on my laptop, but admin/users can be found in src/api/routes/admin/users
There is only a user registry, I can’t find where it works with the database when log-in (/auth) is running, to understand the problem with SELECT
The auth route is in the medusa package, same path, but instead of users it will be auth. Also, i can see you have a lot of custom things, you might have broken something ? 🤔
I recently switched to this project; people were working on this project before me. Can you tell me what is broken and how I can fix it, please?
I am not on my laptop, the only thing i can see in your ss is that the user id is not selected from the query, therefore the column is not found.
Thank you very much, I'll check it now.
@lilac spoke If I can’t solve the problem, I'll write here, if it’s convenient for you, help me with this, please?
Only the password hash seems selected from the user table
Yes sure you can keep it here 👌 i am on vacay thats why i am not on ly laptop ahah
Yes, but where can I check how SELECT works to fix this, I can’t find it.