@if (loading) { } @if (!loading && error) {
error_outline {{ error }}
} @if (!loading && log) {
{{ log.channel === 'EMAIL' ? 'mail' : log.channel === 'TOTP' ? 'qr_code_2' : 'smartphone' }}

OTP Log #{{ log.id }}

{{ log.channel || '—' }} {{ log.status || '—' }} @if (log.purpose) { {{ log.purpose }} }
User {{ log.username || '—' }}
Destination {{ log.destination || '—' }}
Reference {{ log.otpReference || '—' }}
Attempts {{ log.attempts ?? 0 }}{{ log.maxAttempts ? '/' + log.maxAttempts : '' }}
Created on {{ formatDate(log.createdOn) }}
Expires on {{ formatDate(log.expiresOn) }}
Verified on {{ formatDate(log.verifiedOn) }}
IP address {{ log.ipAddress || '—' }}
@if (log.userAgent) {
User agent {{ log.userAgent }}
} @if (log.message) {
Gateway message {{ log.message }}
}
}