mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
fix: Option::Error caused endpoints that used ValidatedTicket become inaccessible to bots
Signed-off-by: İspik <ispik@ispik.dev>
This commit is contained in:
@@ -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