server/middleware: fix reporting auth errors
This commit is contained in:
		
							parent
							
								
									c7d0ffb212
								
							
						
					
					
						commit
						d1cad99e87
					
				@ -36,6 +36,7 @@ def _get_user(ctx):
 | 
			
		||||
        msg = 'Basic authentication header value are not properly formed. ' \
 | 
			
		||||
            + 'Supplied header {0}. Got error: {1}'
 | 
			
		||||
        raise HttpBadRequest(
 | 
			
		||||
            'ValidationError',
 | 
			
		||||
            msg.format(ctx.get_header('Authorization'), str(err)))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user