Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Adding users/passwords to the Postgres #5

Open
ravinder-Olivier opened this issue Oct 22, 2023 · 13 comments
Open

Adding users/passwords to the Postgres #5

ravinder-Olivier opened this issue Oct 22, 2023 · 13 comments

Comments

@ravinder-Olivier
Copy link
Member

The method used in the example script provided doesn't work ._.

@ravinder-Olivier
Copy link
Member Author

@RedstoneWizard08

@RedstoneWizard08
Copy link
Contributor

I'll take a look soon, sorry I've been busy

@ravinder-Olivier
Copy link
Member Author

Yeah, no rush, just wanted to have it documented. I'm working on making a full project roadmap

@RedstoneWizard08
Copy link
Contributor

I think I found the issue:
Before starting the server, run these commands:

cd server
cargo install diesel_cli --no-default-features --features postgres
diesel setup
diesel migration run

Then it should work. I think the issue was that the database wasn't set up correctly, I missed putting that step in the instructions.

@ravinder-Olivier
Copy link
Member Author

I tried all of those, uninstalling and reinstalling diesel_cli, following the instructions, and I'm still left with the attached screenshot
Screen Shot 2023-11-03 at 9 26 18 PM

@RedstoneWizard08
Copy link
Contributor

You're not using the username and password you registered with. That's why. It's working as intended.

@ravinder-Olivier
Copy link
Member Author

I'm not so sure, it's giving me errors when I try to register or login, and when I try on the webclient I'm stuck on the login page.
Screen Shot 2023-11-04 at 10 17 31 PM

@RedstoneWizard08
Copy link
Contributor

Calling register again will return invalid because the user already exists.

@RedstoneWizard08
Copy link
Contributor

And you're stuck because it doesn't do anything after login, you need to implement that

@ravinder-Olivier
Copy link
Member Author

Screen Shot 2023-11-05 at 12 35 21 PM
It happens when I try with a new user too, and I supposed to do a different type of request?
2. Oh, ok, I thought it took to the Account page

@RedstoneWizard08
Copy link
Contributor

ok idk why thats happening now

@RedstoneWizard08
Copy link
Contributor

if you cant figure this out just write it in js idk its ur project

@RedstoneWizard08
Copy link
Contributor

sorry

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants