Skip to content

Commit

Permalink
fix #1802 and #1803
Browse files Browse the repository at this point in the history
  • Loading branch information
sauzher committed Aug 30, 2024
1 parent 37d02e7 commit c506abc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/plone/restapi/pas/add_plugin.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="form-group row">
<label for="id_" class="form-label col-sm-3 col-md-2">Id</label>
<div class="col-sm-9 col-md-10">
<input id="id_" name="id" class="form-control" type="text" tal:attributes="value request/id|string:jwt_auth" />
<input id="id_" name="id_" class="form-control" type="text" tal:attributes="value request/id_|string:jwt_auth" />
</div>
</div>

Expand Down
20 changes: 10 additions & 10 deletions src/plone/restapi/pas/config.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
<form action="manage_updateConfig" method="post">
<div class="form-group">
<label class="form-label" for="token_timeout">Token Validity Timeout (in seconds)</label>
<input type="text"
<input type="text"
name="token_timeout"
class="form-control"
tal:attributes="value context/token_timeout|nothing"/>
<small class="form-text text-muted">After this, the token is invalid and the user must login again. Set to 0 for the token to remain valid indefinitely.</small>
</div>

<div class="form-group">
<div class="form-check">
<input class="form-check-input"
type="checkbox" value=""
name="use_keyring"
id="use_keyring"
<input class="form-check-input"
type="checkbox" value="True"
name="use_keyring"
id="use_keyring"
tal:attributes="checked python: context.use_keyring and 'checked'">
<label class="form-check-label" for="use_keyring">Use Keyring</label>
<small class="form-text text-muted">If enabled, tokens are signed with a secret from Plone's keyring. If you want tokens that remain valid indefinitely you should disable this.</small>
Expand All @@ -31,10 +31,10 @@

<div class="form-group">
<div class="form-check">
<input class="form-check-input"
type="checkbox" value=""
name="store_tokens"
id="store_tokens"
<input class="form-check-input"
type="checkbox" value="True"
name="store_tokens"
id="store_tokens"
tal:attributes="checked python: context.store_tokens and 'checked'">
<label class="form-check-label" for="store_tokens">Store tokens</label>
<small class="form-text text-muted">By default tokens are not stored on the server and thus can't be invalidated. If enabled, tokens that don't expire can be invalidated.</small>
Expand Down

0 comments on commit c506abc

Please sign in to comment.