reddit_base: Update last_visit on login.

This commit is contained in:
Ricky Ramirez
2013-02-10 22:44:58 -08:00
parent 9576d87ec6
commit eb6f750684

View File

@@ -881,6 +881,8 @@ class RedditController(MinimalController):
@staticmethod
def login(user, rem=False):
# This can't be handled in post() due to PRG and ErrorController fun.
user.update_last_visit(c.start_time)
c.cookies[g.login_cookie] = Cookie(value=user.make_cookie(),
expires=NEVER if rem else None,
httponly=True)