From 612c2c522aec5e442dec48b099434ca8e4d220ad Mon Sep 17 00:00:00 2001 From: GARNIER Laurent <laurent.garnier@irisa.fr> Date: Mon, 25 Oct 2021 10:06:24 +0000 Subject: [PATCH] Update __init__.py --- allgo/__init__.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/allgo/__init__.py b/allgo/__init__.py index 81a025f..f9626ea 100644 --- a/allgo/__init__.py +++ b/allgo/__init__.py @@ -49,13 +49,19 @@ class Init: string allgo login page link or already initialized message """ + # is token valid ? if not API_token_valid: + # Generate temp token + print("First: " + API_token+ " \n") API_token = get_random_string(length=32) - msg = "Sign in with your existing https://allgo18.inria.fr/accounts/login/?token=" + API_token+ " A||GO account \n" - print(msg) + print("____") + print("You need first to sign in with your existing https://allgo18.inria.fr/accounts/login/?token=" + API_token+ " A||GO account \n") + print("____") else: # FIXME : Have to check that the user is register + print("____") msg = "A||GO already initialized\n" + print("____") print(msg) class App: -- GitLab