mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 22:40:31 -04:00
Format auth_type in a consistent way in the UI
On the ‘find user’ page it says ‘sms_auth’ instead of ‘Text message code’. This commit fixes that, and adds a handy formatter so it’s easier to do the right thing in the future.
This commit is contained in:
@@ -40,6 +40,7 @@ from app.config import configs
|
||||
from app.extensions import antivirus_client, redis_client, zendesk_client
|
||||
from app.formatters import (
|
||||
convert_to_boolean,
|
||||
format_auth_type,
|
||||
format_billions,
|
||||
format_date,
|
||||
format_date_human,
|
||||
@@ -527,6 +528,7 @@ def setup_event_handlers():
|
||||
|
||||
def add_template_filters(application):
|
||||
for fn in [
|
||||
format_auth_type,
|
||||
format_billions,
|
||||
format_datetime,
|
||||
format_datetime_24h,
|
||||
|
||||
Reference in New Issue
Block a user