From 0295c17393880abbe011f461089edf0a9cf32c4f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 23 Apr 2023 01:28:45 -0600 Subject: [PATCH] Add field user_totp_secret --- core/users/app_config.php | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/core/users/app_config.php b/core/users/app_config.php index 566a15fb53..1284962279 100644 --- a/core/users/app_config.php +++ b/core/users/app_config.php @@ -194,6 +194,15 @@ $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; + //$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign"; + //$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_contacts"; + //$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "contact_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "v_id"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; @@ -212,19 +221,10 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "user_email"; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_email"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_uuid"; - $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; - $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; - $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; - //$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign"; - //$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_contacts"; - //$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "contact_uuid"; - $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; - $z++; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "user_status"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "userstatus"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; @@ -242,6 +242,10 @@ $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_totp_secret"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_enabled"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['toggle'] = ['true','false'];