From 53aa187d1f5536a74065fdc94e54da726f588035 Mon Sep 17 00:00:00 2001 From: iBNu Maksum Date: Mon, 21 Oct 2024 14:19:13 +0700 Subject: [PATCH] register with otp, force username to phone number --- ui/ui/customer/register-otp.tpl | 22 +++------------------- ui/ui/customer/register-rotp.tpl | 20 +++----------------- 2 files changed, 6 insertions(+), 36 deletions(-) diff --git a/ui/ui/customer/register-otp.tpl b/ui/ui/customer/register-otp.tpl index f243e43f..6aff70ad 100644 --- a/ui/ui/customer/register-otp.tpl +++ b/ui/ui/customer/register-otp.tpl @@ -17,28 +17,12 @@
- +
- {if $_c['registration_username'] == 'phone'} - - {elseif $_c['registration_username'] == 'email'} - - {else} - - {/if} + placeholder="{if $_c['country_code_phone']!= '' || $_c['registration_username'] == 'phone'}{$_c['country_code_phone']} {Lang::T('Phone Number')}{else}{Lang::T('Phone Number')}{/if}">
diff --git a/ui/ui/customer/register-rotp.tpl b/ui/ui/customer/register-rotp.tpl index bf195e73..2f4774f3 100644 --- a/ui/ui/customer/register-rotp.tpl +++ b/ui/ui/customer/register-rotp.tpl @@ -20,27 +20,13 @@
- {if $_c['registration_username'] == 'phone'} - - {elseif $_c['registration_username'] == 'email'} - - {else} - - {/if} + placeholder="{if $_c['country_code_phone']!= '' || $_c['registration_username'] == 'phone'}{$_c['country_code_phone']} {Lang::T('Phone Number')}{else}{Lang::T('Phone Number')}{/if}">