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

Compile error #41

Closed ywegel closed 2 years ago

ywegel commented 2 years ago

So the next crate does not compile anymore, because i can't find the id, as id is not a filed anymore. It can be fixed by changing line 316 in auth.rs from let user: User = self.users.get_by_id(session.id).await?; to let user: User = self.users.get_by_id(session.id()?).await?;. I tried to fix it myself, it works locally, but i can't update my fork

tvallotton commented 2 years ago

Hi, yes, I noticed that while I was merging next with some of my local unpushed changes. I will push the fixed version soon.