Commit a9810e97 authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Plus besoin du préfixe temp_ dans le fichier.

parent 824bd544
......@@ -226,8 +226,8 @@ def auth():
return Response("This token does not grant access to any data hosted at RESIF. You are member of %s. Please contact the PI of the data you are looking for to grant you access."%tokendict['memberof'], status=200)
# Compute a random login and password
login = 'temp_'+''.join(random.choices(string.ascii_uppercase + string.digits, k=12))
password = ''.join(random.choices(string.ascii_uppercase + string.digits, k=12))
login = ''.join(random.choices(string.ascii_uppercase + string.digits, k=14))
password = ''.join(random.choices(string.ascii_uppercase + string.digits, k=14))
# Register login
register_login(login, password)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment