Skip to content

Sign Up Extension #1

@BKDaugherty

Description

@BKDaugherty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions