Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6841e947 authored by GARNIER Laurent's avatar GARNIER Laurent
Browse files

Update allgo/__init__.py

parent ef1d5dd9
No related branches found
No related tags found
1 merge request!5Jupyter token 2021
......@@ -2,15 +2,6 @@ import logging
import os
import time
from django.conf import settings
from django.contrib import auth
from django.contrib.auth.models import User, AnonymousUser
from django.utils.crypto import get_random_string
from django.contrib.auth import authenticate
from django.contrib.auth.models import Permission, User
import requests
try:
from urllib.parse import urlparse, urlencode
......@@ -60,12 +51,11 @@ class Init:
user = self.request.user
if user.is_authenticated:
print("User authenticated")
else:
print("User not authenticated")
# if user.is_authenticated:
# print("User authenticated")
# else:
# print("User not authenticated")
# is token valid ?
if not API_token_valid:
# Generate temp token
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment