mirror of
https://github.com/9001/copyparty.git
synced 2026-08-16 07:13:07 -06:00
wopi: fix access_token_ttl (#1587)
This commit is contained in:
parent
14e2d79b08
commit
92c3f32e13
|
|
@ -1703,7 +1703,7 @@ class HttpCli(object):
|
|||
title=self.uparam["wopi"],
|
||||
url=url,
|
||||
atoken=atoken,
|
||||
ttl=session["expires"],
|
||||
ttl=int(session["expires"] * 1000),
|
||||
).encode("utf-8", "replace")
|
||||
|
||||
self.reply(html, 200, "text/html; charset=utf-8")
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ body {
|
|||
<div style="display: none">
|
||||
<form action="{{ url }}" enctype="multipart/form-data" method="post" target="w" id="submit-form">
|
||||
<input name="access_token" value="{{ atoken }}" type="hidden" id="access-token"/>
|
||||
<input name="access_token_ttl" value="{{ ttl }}000" type="hidden" id="access-token_ttl"/>
|
||||
<input name="access_token_ttl" value="{{ ttl }}" type="hidden" id="access-token_ttl"/>
|
||||
<input type="submit" value="" />
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue