From 61c3fdddd5e9709e9db37233229bab71e308d111 Mon Sep 17 00:00:00 2001
From: GARNIER Laurent <laurent.garnier@irisa.fr>
Date: Tue, 19 Oct 2021 15:24:20 +0000
Subject: [PATCH] Update __init__.py

---
 allgo/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/allgo/__init__.py b/allgo/__init__.py
index cfe51bb..16465b0 100644
--- a/allgo/__init__.py
+++ b/allgo/__init__.py
@@ -47,7 +47,7 @@ class Init:
         string
             allgo login page link or already initialized message
         """
-        if API_token is None
+        if not API_token_valid:
             API_token = get_random_string(length=32)
             msg = "allgo_token = " + API_token
             msg += "<p>Sign in with your existing <a href=\"https://allgo18.inria.fr/accounts/login/?token=" + API_token+  "\">A||GO account </a></p>"
-- 
GitLab