mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
93630d53c7
commit
270d36f59f
@ -119,7 +119,7 @@ class AuthController(object):
|
||||
def generate_cookie(self, timestamp=None):
|
||||
'''
|
||||
Generate a cookie. The cookie contains a plain text timestamp and a
|
||||
hashe of the timestamp and the server secret.
|
||||
hash of the timestamp and the server secret.
|
||||
'''
|
||||
timestamp = int(time.time()) if timestamp is None else timestamp
|
||||
key = self.hashit(self.key_order%dict(t=timestamp, s=self.secret))
|
||||
|
Loading…
x
Reference in New Issue
Block a user