[web] apple config app passwords enhancements + translations

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
This commit is contained in:
Kristian Feldsam
2021-11-26 23:21:14 +01:00
parent 0f59d4952b
commit 2eafd89412
12 changed files with 53 additions and 34 deletions

View File

@@ -62,16 +62,18 @@ elseif (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == '
$user_domains = array_merge($user_domains, $user_alias_domains);
}
$template = 'user.twig';
// get number of app passwords
$number_of_app_passwords = 0;
foreach (app_passwd("get") as $app_password)
{
$app_password = app_passwd("details", $app_password['id']);
if ($app_password['active'])
{
++$number_of_app_passwords;
$number_of_app_passwords++;
}
}
$template = 'user.twig';
$template_data = [
'acl' => $_SESSION['acl'],
'acl_json' => json_encode($_SESSION['acl']),