fix: Option::Error caused endpoints that used ValidatedTicket become inaccessible to bots
Signed-off-by: İspik <ispik@ispik.dev>
This commit is contained in:
1 parent
a386e84c7d
commit
07f2c3d77a
1 file changed
+1
-1
@@ -51,7 +51,7 @@ impl<'r> FromRequest<'r> for ValidatedTicket {
|
||||
Outcome::Error((Status::Forbidden, create_error!(InvalidToken)))
|
||||
}
|
||||
} else {
|
||||
Outcome::Error((Status::Forbidden, create_error!(InvalidToken)))
|
||||
Outcome::Forward(Status::Unauthorized)
|
||||
}
|
||||
}
|
||||
Outcome::Forward(f) => Outcome::Forward(f),
|
||||
|
||||
Reference in new issue
Block a user