sharepulse/frontend/src/app/adminui/loginhistory/loginhistory.component.html
2024-06-03 23:52:12 +02:00

27 lines
792 B
HTML

<form method="dialog">
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2"></button>
</form>
<h2 class="mb-3">Operations</h2>
<button class="btn btn-error" (click)="deleteLogins()">Delete all stored logins for the current user</button>
<h2 class="mt-5 mb-3">Login history</h2>
<div class="overflow-x-auto">
<table class="table w-full">
<thead>
<tr>
<!-- <th>ID</th>-->
<!-- <th>User ID</th>-->
<th>Login Time</th>
<th>Login IP</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let entry of loginHistory">
<!-- <td>{{ entry.id }}</td>-->
<!-- <td>{{ entry.userId }}</td>-->
<td>{{ entry.loginTime | date: 'dd. MMMM yyyy, HH:mm:ss' }}</td>
<td>{{ entry.loginIp }}</td>
</tr>
</tbody>
</table>
</div>