Commits

James Tocknell  committed 463d2ea

Some minor fixes

  • Participants
  • Parent commits b4101eb

Comments (0)

Files changed (2)

File persona_middleware/__init__.py

         else:
             request.session = self.session_store.get(sid)
 
+        if request.environ.get("USER_EMAIL"):
+            request.environ.pop("USER_EMAIL")
         if request.session.get("user_email"):
             request.environ['USER_EMAIL'] = request.session.get("user_email")
 
     def logout(self, request):
         request.session.pop('user_email', None)
         return redirect('/')
+
+__all__ = [PersonaMiddleware]
     name="persona-middleware",
     author="James Tocknell",
     version="0.1dev",
-    packages=["persona_middleware"]
+    packages=["persona_middleware"],
+    install_requires=[
+        'werkzeug',
+        'requests',
+    ],
 )