From 7a3dcc4dc6e86e94a352d570ed750d5fadadab70 Mon Sep 17 00:00:00 2001 From: slawkens Date: Sat, 25 Mar 2023 19:17:55 +0100 Subject: [PATCH] small fixes to account_login_by_email --- system/pages/account/create.php | 9 +++++++-- system/templates/account.management.html.twig | 4 +++- templates/tibiacom/account.management.html.twig | 4 +++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/system/pages/account/create.php b/system/pages/account/create.php index 3ce638d1..49302502 100644 --- a/system/pages/account/create.php +++ b/system/pages/account/create.php @@ -26,8 +26,13 @@ if(config('account_create_character_create')) { } $account_type = 'number'; -if(USE_ACCOUNT_NAME) { - $account_type = 'name'; +if (config('account_login_by_email')) { + $account_type = 'Email Address'; +} +else { + if(USE_ACCOUNT_NAME) { + $account_type = 'name'; + } } $errors = array(); diff --git a/system/templates/account.management.html.twig b/system/templates/account.management.html.twig index b8e9aae0..80d60006 100644 --- a/system/templates/account.management.html.twig +++ b/system/templates/account.management.html.twig @@ -89,10 +89,12 @@

General Information

+ {% if not config.account_login_by_email or config.account_login_by_email_fallback %} + {% endif %}
Account {% if constant('USE_ACCOUNT_NAME') %}Name{% else %}Number{% endif %}: {{ account }}
Email Address: {{ account_email ~ email_change }} @@ -206,4 +208,4 @@
- \ No newline at end of file + diff --git a/templates/tibiacom/account.management.html.twig b/templates/tibiacom/account.management.html.twig index b0abb76d..4b39abd8 100644 --- a/templates/tibiacom/account.management.html.twig +++ b/templates/tibiacom/account.management.html.twig @@ -146,10 +146,12 @@
+ {% if not config.account_login_by_email or config.account_login_by_email_fallback %} + {% endif %} @@ -516,4 +518,4 @@
Account {% if constant('USE_ACCOUNT_NAME') %}Name{% else %}Number{% endif %}: {{ account }}
Email Address: {{ account_email ~ email_change}}
-

\ No newline at end of file +