diff --git a/allgo/__init__.py b/allgo/__init__.py index 81a025fb314ae6f0e9635b01a2dc63fe517612b3..f9626ead11174a4397d9964a19a27a551552856a 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: