diff --git a/hiboo/models.py b/hiboo/models.py index ad9df0c8ed13f3686337b8c680e0604c201b05ea..1756ce29a1a88f324fec4d55429a2d486ee63760 100644 --- a/hiboo/models.py +++ b/hiboo/models.py @@ -322,7 +322,7 @@ class History(db.Model): STATUS = "status" TRANSITION = "transition" PASSWORD = "password" - MFA = "2FA" + MFA = "2fa" DESCRIPTION = { SIGNUP: _("signed up for this account"), diff --git a/hiboo/templates/macros.html b/hiboo/templates/macros.html index 3c5befe53af0a9315b9fc6a1f1d7923bc2849892..bf6b278d49822a05844093e4d008fc32e7faaf03 100644 --- a/hiboo/templates/macros.html +++ b/hiboo/templates/macros.html @@ -12,7 +12,7 @@ </div> {% endif %} <div> - <i class="fas fa-{{ {"signup": "address-card", "create": "plus", "transition": "recycle", "password": "lock", "2FA": "qrcode"}[event.category] }} bg-blue"></i> + <i class="fas fa-{{ {"signup": "address-card", "create": "plus", "transition": "recycle", "password": "lock", "2fa": "qrcode"}[event.category] }} bg-blue"></i> <div class="timeline-item"> <span class="time"><i class="fas fa-clock"></i> {{ event.created_at.time().strftime("%H:%M") }}</span> <h3 class="timeline-header">