Commit 69fa7d00 authored by Simon Latapie's avatar Simon Latapie

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.
parent cd9bb56d
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment