mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
Token expiration restored to 1 day.
This commit is contained in:
parent
62353b6c3b
commit
1eb3ddee53
|
@ -276,7 +276,7 @@ class User < ActiveRecord::Base
|
|||
|
||||
token_string = Devise.friendly_token(20) + "-" + id.to_s
|
||||
# WOPI uses millisecond TTLs
|
||||
ttl = (Time.now + 1.hour).to_i
|
||||
ttl = (Time.now + 1.day).to_i
|
||||
wopi_token = Token.create(token: token_string, ttl: ttl, user_id: id)
|
||||
Rails.logger.warn("WOPI: generating new token #{wopi_token.token}")
|
||||
wopi_token
|
||||
|
|
Loading…
Reference in a new issue