Make reddit login cookie HTTP only.

This commit is contained in:
Max Goodman
2012-11-14 12:46:16 -08:00
parent b06dc9b8f1
commit 79358e95b3

View File

@@ -792,7 +792,8 @@ class RedditController(MinimalController):
@staticmethod
def login(user, rem=False):
c.cookies[g.login_cookie] = Cookie(value = user.make_cookie(),
expires = NEVER if rem else None)
expires = NEVER if rem else None,
httponly=True)
@staticmethod
def logout():