change user.rs

This commit is contained in:
Lennart
2024-10-04 11:58:29 +02:00
parent 8949506758
commit 4e85d129d1

View File

@@ -19,9 +19,9 @@ impl FromRequest for User {
) -> Self::Future {
ready(
req.extensions()
.get::<User>()
.get::<Self>()
.cloned()
.ok_or(ErrorUnauthorized("")),
.ok_or(ErrorUnauthorized("Not authenticated")),
)
}
}