forked from Github-Mirrors/canaille
fix: demo client issue date
This commit is contained in:
parent
77072db5c8
commit
e1f54fffbc
2 changed files with 4 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
</td>
|
||||
<td><a href="{{ url_for('oidc.clients.edit', client=client) }}">{{ client.client_name }}</a></td>
|
||||
<td><a href="{{ client.client_uri }}">{{ client.client_uri }}</a></td>
|
||||
<td>{% if client.client_id_issued_at %}{{ client.client_id_issued_at }}{% endif %}</td>
|
||||
<td>{% if client.client_id_issued_at %}{{ client.client_id_issued_at.strftime("%d/%m/%Y %H:%M:%S") }}{% endif %}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import datetime
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
@ -100,6 +101,7 @@ def populate(app):
|
|||
users.save()
|
||||
|
||||
client1 = models.Client(
|
||||
client_id_issued_at=datetime.datetime.utcnow(),
|
||||
client_id="1JGkkzCbeHpGtlqgI5EENByf",
|
||||
client_secret="2xYPSReTQRmGG1yppMVZQ0ASXwFejPyirvuPbKhNa6TmKC5x",
|
||||
client_name="Client1",
|
||||
|
@ -118,6 +120,7 @@ def populate(app):
|
|||
client1.save()
|
||||
|
||||
client2 = models.Client(
|
||||
client_id_issued_at=datetime.datetime.utcnow(),
|
||||
client_id="gn4yFN7GDykL7QP8v8gS9YfV",
|
||||
client_secret="ouFJE5WpICt6hxTyf8icXPeeklMektMY4gV0Rmf3aY60VElA",
|
||||
client_name="Client2",
|
||||
|
|
Loading…
Reference in a new issue