mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 09:56:28 +00:00 
			
		
		
		
	fix auth error
This commit is contained in:
		@@ -168,7 +168,8 @@ impl<P: Policy + 'static, D: 'static + Clone> FromRequest for GuardedData<P, D>
 | 
			
		||||
                                    None => err(AuthenticationError::IrretrievableState.into()),
 | 
			
		||||
                                }
 | 
			
		||||
                            } else {
 | 
			
		||||
                                err(AuthenticationError::InvalidToken(String::from("hello")).into())
 | 
			
		||||
                                let token = token.to_str().unwrap_or("unknown").to_string();
 | 
			
		||||
                                err(AuthenticationError::InvalidToken(token).into())
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                        None => err(AuthenticationError::MissingAuthorizationHeader.into()),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user