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
Sign up really should take more than an email and a password. And the User object should store more than an email and password.
If you update the User Type here the Rust compiler should get mad at you in pretty much all of the places that you'll need to change.
So run cargo build a few times, and see what breaks and that will help you build the dependency graph of where the information has to be piped.
There are a few special places to check as well.
To avoid loading the hash of user passwords, we pass a PublicUser object around in a few places. The conversion from User -> PublicUser is defined here
Sign up really should take more than an email and a password. And the User object should store more than an email and password.
If you update the User Type here the Rust compiler should get mad at you in pretty much all of the places that you'll need to change.
So run
cargo build
a few times, and see what breaks and that will help you build the dependency graph of where the information has to be piped.There are a few special places to check as well.
To avoid loading the hash of user passwords, we pass a PublicUser object around in a few places. The conversion from User -> PublicUser is defined here
Also, the psql storage isn't super safe, so rustc might not give you the hint on those.
You'll definitely need to update the defined models for working with User objects, as well as update the diesel migration for turning up the User table which generates the schema.rs file.
Check out this code for creating users in Psql from the CreateUserRequest object in types too
The text was updated successfully, but these errors were encountered: