Added readable mode for article content
This commit is contained in:
@@ -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())),
|
||||
|
||||
Reference in New Issue
Block a user