mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-11 05:33:57 +00:00
new user: disable kobo token on new user page
kobo token generator function is related to a user id, which is not present on new user page. Disable the Kobo token part when creating a new user.
This commit is contained in:
parent
cd9bb56db5
commit
69fa7d0091
@ -55,7 +55,7 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if feature_support['kobo'] %}
|
||||
{% if feature_support['kobo'] and not new_user %}
|
||||
<label>{{ _('Kobo Sync Token')}}</label>
|
||||
<div class="form-group col">
|
||||
<a class="btn btn-default" id="config_create_kobo_token" data-toggle="modal" data-target="#modal_kobo_token" data-remote="false" href="{{ url_for('kobo_auth.generate_auth_token', user_id=content.id) }}">{{_('Create/View')}}</a>
|
||||
|
Loading…
Reference in New Issue
Block a user