Files
Phraseanet/templates/web/api/auth/native_app_access_token.twig
Romain Neutron 4c5b7eb658 V 3.5 RC 1
2011-12-05 00:23:28 +01:00

29 lines
619 B
Twig

<html>
<head>
<title>
{% if error is defined %}
{% trans 'Fail' %}
{% else %}
{% trans 'Success' %}
{% endif %}
</title>
</head>
<body>
{% if error is defined %}
<p>
{% trans %}
Erreur : {{error}}
{% endtrans %}
</p>
{% else %}
<input type="text" name="access_token" value="{{token.access_token}}" size="{{token.access_token|length}}"/>
<p>
{% set expiration_date = token.expires_in() %}
{% trans %}
Expire dans {{expiration_date}}
{% endtrans %}
</p>
{% endif %}
</body>
</html>