ysmazaheri / UMass-Study-Bites

A UMass Amherst community-driven food delivery service. UMass Study Bites!
2 stars 0 forks source link

Differentiate between 'name' and 'username' #125

Closed ysmazaheri closed 6 months ago

ysmazaheri commented 6 months ago

In some places, name is being interpreted as 'firstname lastname' (e.g. delivery), and in other places its being seen as a username (e.g. its being used as an ID). There is only one 'name' attribute in 'user.js', so this needs repairing.

ysmazaheri commented 6 months ago

On hold until #98 is complete

ysmazaheri commented 6 months ago

Potential Solution: If emails are required to be valid UMass emails, then the corresponding ID can be the content before '@umass.edu', which we know to be unique.

Important Barrier: If we only check whether the emails contain '@umass.edu`, and not whether they are actually legitimate emails, then we lose the guaranteed uniqueness element. We will need to manually check to see whether the email already exists in the user db.

ysmazaheri commented 6 months ago

Potentially overridden by issue #146