Revision 6a0e1a00 api/middleware.py
b/api/middleware.py | ||
---|---|---|
13 | 13 |
if not request.path.startswith('/api/') : |
14 | 14 |
return |
15 | 15 |
|
16 |
# Another middleware on the processing chain has authenticated the user. |
|
17 |
if request.user: |
|
18 |
return |
|
19 |
|
|
20 | 16 |
token = None |
21 | 17 |
|
22 | 18 |
# Try to find token in a cookie |
Also available in: Unified diff