fix issue with removing account if it created some API Key

This commit is contained in:
ghostersk
2025-05-27 11:21:58 +01:00
parent cb9b50bd9b
commit 510501ce7e
12 changed files with 236 additions and 10 deletions
-2
View File
@@ -45,7 +45,6 @@
<th>Key</th>
<th>Created</th>
<th>Last Used</th>
<th>Created By</th>
<th>Actions</th>
</tr>
</thead>
@@ -63,7 +62,6 @@
</td>
<td>{{ api_key.created_at.strftime('%Y-%m-%d %H:%M:%S') }}</td>
<td>{{ api_key.last_used.strftime('%Y-%m-%d %H:%M:%S') if api_key.last_used else 'Never' }}</td>
<td>{{ api_key.user.username }}</td>
<td>
<form action="{{ url_for('auth.delete_company_api_key', company_id=company.id, key_id=api_key.id) }}" method="POST"
style="display:inline" onsubmit="return confirm('Are you sure you want to delete this API key?');">