tvallotton / rocket_auth

An implementation for an authentication API for Rocket applications.
https://docs.rs/rocket_auth/
Apache License 2.0
73 stars 35 forks source link

Email field of `User` should be public #22

Closed knarkzel closed 2 years ago

knarkzel commented 2 years ago

I'm using sailfish for templates, and I don't wanna serialize the type because of overhead, and I only need the email field of User. This should probably be public, unless there's a specific security reason for it not to be.

tvallotton commented 2 years ago

Hi, you can retrieve the email with user.email(). The email field is private so it is always validated when using set_email.