mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-30 01:08:32 -05:00
reddit_base: Update last_visit on login.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user