Add view that displays user information, including:

- name
- email
- phone number
- services
- last login
- failed login attempts if any

The view can be accessed from results of find_users_by_email

logged_in_at added to User serialization on admin frontend as
a part of this work
This commit is contained in:
Pea Tyczynska
2018-07-10 17:24:20 +01:00
parent 57e9c1d6e6
commit 4cd465753a
7 changed files with 170 additions and 35 deletions

View File

@@ -76,15 +76,17 @@ class HeaderNavigation(Navigation):
'add_organisation',
'create_email_branding',
'email_branding',
'find_users_by_email',
'live_services',
'organisations',
'platform_admin',
'platform_admin_list_complaints',
'suspend_service',
'trial_services',
'update_email_branding',
'user_information',
'view_provider',
'view_providers',
'platform_admin_list_complaints',
},
'sign-in': {
'sign_in',
@@ -399,6 +401,7 @@ class MainNavigation(Navigation):
'error',
'features',
'feedback',
'find_users_by_email',
'forgot_password',
'get_example_csv',
'get_notifications_as_json',
@@ -472,6 +475,7 @@ class MainNavigation(Navigation):
'two_factor_email',
'two_factor_email_sent',
'update_email_branding',
'user_information',
'user_profile',
'user_profile_email',
'user_profile_email_authenticate',
@@ -567,6 +571,7 @@ class CaseworkNavigation(Navigation):
'error',
'features',
'feedback',
'find_users_by_email',
'forgot_password',
'get_example_csv',
'get_notifications_as_json',
@@ -687,6 +692,7 @@ class CaseworkNavigation(Navigation):
'two_factor_email_sent',
'update_email_branding',
'usage',
'user_information',
'user_profile',
'user_profile_email',
'user_profile_email_authenticate',
@@ -789,6 +795,7 @@ class OrgNavigation(Navigation):
'error',
'features',
'feedback',
'find_users_by_email',
'forgot_password',
'get_example_csv',
'get_notifications_as_json',
@@ -908,6 +915,7 @@ class OrgNavigation(Navigation):
'two_factor_email_sent',
'update_email_branding',
'usage',
'user_information',
'user_profile',
'user_profile_email',
'user_profile_email_authenticate',