Easily get current signed in user in requests
This commit is contained in:
@@ -18,7 +18,7 @@ impl From<RemoteIP> for IpAddr {
|
||||
|
||||
impl FromRequest for RemoteIP {
|
||||
type Error = Error;
|
||||
type Future = Ready<Result<RemoteIP, Error>>;
|
||||
type Future = Ready<Result<Self, Error>>;
|
||||
|
||||
#[inline]
|
||||
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future {
|
||||
|
Reference in New Issue
Block a user