Added readable mode for article content

This commit is contained in:
mathias committed 2023-10-15 17:44:05 +02:00
1 parent 3d77c6f30f
commit ee80cbd53b
17 files changed
+151 -53

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ impl JwtToken {
}
}
#[allow(dead_code)]
pub fn decode_from_request(request: HttpRequest) -> Result<JwtToken, &'static str> {
match request.headers().get("user-token") {
Some(token) => JwtToken::decode(String::from(token.to_str().unwrap())),