mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 04:42:15 +00:00
change user.rs
This commit is contained in:
@@ -19,9 +19,9 @@ impl FromRequest for User {
|
|||||||
) -> Self::Future {
|
) -> Self::Future {
|
||||||
ready(
|
ready(
|
||||||
req.extensions()
|
req.extensions()
|
||||||
.get::<User>()
|
.get::<Self>()
|
||||||
.cloned()
|
.cloned()
|
||||||
.ok_or(ErrorUnauthorized("")),
|
.ok_or(ErrorUnauthorized("Not authenticated")),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user