Feb-13-2019, 09:32 PM
I am trying to give files only to authenticated users. In one viewpoint i have this code:
auth = request.authorization if not auth or not counters.check_auth( auth.username, auth.password ): return counters.authenticate()The current viewpoint then hands the flow to another view point like this:
% ( url_for( 'download' ), filename, hits, lastvisit )My question is how to read auth.username from the /download view point?