-
Notifications
You must be signed in to change notification settings - Fork 16
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
Login success but stuck on root page - user was registered successfully #15
Comments
I'm using a password manager but I also did it by hand using the same credentials and it is the same. Spatz.mov |
Thanks for this. Can you re-create at https://spatz.engage-dev.com ?Are you getting any output in the server or browser consoles?Do pocketbase logs in the admin dashboard show the attempted request?I have a feeling this could be unique to your dev environment… I’m trying to think of a way I could recreate this locally. 🤔 Sent from my iPhoneOn Oct 17, 2024, at 4:04 PM, Barton Hammond ***@***.***> wrote:
I'm using a password manager but I also did it by hand using the same credentials and it is the same.
https://github.com/user-attachments/assets/2fab88fc-5be4-42e8-99df-5dfa900cd439
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Looks like you're already registered: You should be able to login (on spatz url) with [email protected] and your password. I'm thinking that your local issue is probably the .env config. I can have a look at this later this evening to see if there is something I'm missing... In the meantime, I would recommend trying spatz2, it's more up to date - but shares a lot of the same code. If you can recreate the issue with spatz2 then it's most def a .env config issue. |
ok - I think something maybe out of sync between the registration user/password and the login attempt which would be my fault. Both locally and remote. I'll delete my local user and do all this again. Thanks for slogging through this w/ me. |
No problem! Let's get this sorted out and update whatever we need to help future users avoid this issue. We could probably add some better error/feedback on registration and login pages as well. |
entire-step.mov |
Thanks for the recording. So, your .env must be fine - being that the user is being registered. Let's try this.... replace the contents of /src/hooks.server.ts with this:
then restart dev env, and see if that helps. |
You asked to try
|
You asked to replace |
Right on! Glad we got it sorted. Would you like to send a PR to update the hooks.server.ts ? If not, I can do it and we can close this issue. Thanks for pointing this out, it will def help people out in the future. |
First - thanks for doing this - I'm very impressed (fwtw)
I can register but when I login, w/ no indication of error, it navigates to the root page. I am using this to learn SvelteKit. Is there a route or config file that needs to be updated so that I can view the Profile page for example. I did confirm that PB has the registered user.
The text was updated successfully, but these errors were encountered: