X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=auth%2Fmanifoldbackend.py;h=dbaf863cf98fd36ef8c3736f56a91b66ceb10f2e;hb=df482c9a6212b2b7134e8130358d213562b9df44;hp=450974e0e4f04c37c39df7991b4a086f4f05a6cf;hpb=edbbf9559e567fae94b80da4def6ce12ac0e425f;p=myslice.git diff --git a/auth/manifoldbackend.py b/auth/manifoldbackend.py index 450974e0..dbaf863c 100644 --- a/auth/manifoldbackend.py +++ b/auth/manifoldbackend.py @@ -1,10 +1,8 @@ -# import the User object -from django.contrib.auth.models import User -from engine.manifoldapi import ManifoldAPI +import time +from django.contrib.auth.models import User -# import time - this is used to create Django's internal username -import time +from engine.manifoldapi import ManifoldAPI # Name my backend 'ManifoldBackend' class ManifoldBackend: @@ -27,7 +25,6 @@ class ManifoldBackend: if not session : return None - request.session['manifold_session'] = session #self.session = session # Change GetSession() at some point to return expires as well expires = time.time() + (24 * 60 * 60)